Enterprise-level component library based on Bootstrap and Blazor

star nuget license download repo commit master coverage

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>Breadcrumb</h3>

<h4>Display the path of the current page and quickly return to any previous page.</h4>

<DemoBlock Title="Basic usage" Introduction="Suitable for a wide range of basic usage." Name="Normal">
    <Breadcrumb Value="@DataSource" />
</DemoBlock>
// 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.Samples;

/// <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 675147445 Welcome to join the group discussion
Themes
Bootstrap
Motronic
Ant Design (完善中)
LayUI (完善中)
An error has occurred. This application may no longer respond until reloaded. Reload