Enterprise-level component library based on Bootstrap and Blazor

star nuget master download license repo commit

Breadcrumb

Display the path of the current page and quickly return to any previous page.

Suitable for a wide range of basic usage.

Demo
@page "/breadcrumbs"
@inject IStringLocalizer<Breadcrumbs> Localizer

<h3>@Localizer["Title"]</h3>

<h4>@Localizer["H1"]</h4>

<Block Title="@Localizer["Blcok1Title"]" Introduction="@Localizer["Blcok1Intro"]">
    <Breadcrumb Value="@DataSource" />
</Block>
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/

using BootstrapBlazor.Components;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace BootstrapBlazor.Shared.Pages
{
    /// <summary>
    /// 
    /// </summary>
    public sealed partial class Breadcrumbs
    {
        [NotNull]
        private IEnumerable<BreadcrumbItem>? DataSource { get; set; }

        /// <summary>
        /// OnInitialized 方法
        /// </summary>
        protected override void OnInitialized()
        {
            base.OnInitialized();

            DataSource = new List<BreadcrumbItem>
            {
                new BreadcrumbItem("Home", "#"),
                new BreadcrumbItem("Library", "#"),
                new BreadcrumbItem("Data")
            };
        }
    }
}

B 站相关视频链接

暂无

交流群

QQ Group:BootstrapAdmin & Blazor 795206915( Full) 675147445 Welcome to join the group discussion
Themes
Bootstrap
Ant Design (完善中)
Bluma (完善中)
LayUI (完善中)
Motronic (已集成)
An error has occurred. This application may no longer respond until reloaded. Reload