Table of Contents

Class TwBreadcrumb

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A navigation component which displays an ordered list of the current page navigation.

public class TwBreadcrumb : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Inheritance
TwBreadcrumb
Implements
Inherited Members

Constructors

TwBreadcrumb()

public TwBreadcrumb()

Properties

Auto

Determines if the breadcrumbs are automatically constructed from the URI.

[Parameter]
public bool Auto { get; set; }

Property Value

bool

BreadcrumbClass

Adds classes to individual breadcrumbs, default value is "capitalize".

[Parameter]
public string BreadcrumbClass { get; set; }

Property Value

string

Breadcrumbs

The list of breadcrumbs to display.

[Parameter]
public List<BreadcrumbItem> Breadcrumbs { get; set; }

Property Value

List<BreadcrumbItem>

ChildContent

The child content rendered in the ordered list.

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

NavigationManager

[Inject]
public NavigationManager NavigationManager { get; set; }

Property Value

NavigationManager

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitializedAsync()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

protected override Task OnInitializedAsync()

Returns

Task

A Task representing any asynchronous operation.