Table of Contents

Class TwBreadcrumbItem

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll
public class TwBreadcrumbItem : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Inheritance
TwBreadcrumbItem
Implements
Inherited Members

Constructors

TwBreadcrumbItem()

public TwBreadcrumbItem()

Properties

AriaCurrent

Gets or sets a value indicating whether the element is the current item within a set of items.

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

Property Value

bool

Remarks

This property is typically used in accessibility scenarios to indicate the current state of an element in relation to other elements. It is important for assistive technologies to convey the current status to users.

Breadcrumb

Allows for dynamic generation of properties for TwBreadcrumb instead of defining them inline.

[Parameter]
public BreadcrumbItem? Breadcrumb { get; set; }

Property Value

BreadcrumbItem

Href

Gets or sets the URI that identifies the resource.

[Parameter]
public string? Href { get; set; }

Property Value

string

Remarks

The Href property must be a valid URI format. It is required for the proper identification of the resource it represents.

Icon

Gets or sets the icon associated with the object. This icon can be used to visually represent the object in a user interface.

[Parameter]
public Icon? Icon { get; set; }

Property Value

Icon?

Remarks

If the icon is not set, the property will return null. Ensure that the icon is properly initialized before use to avoid null reference exceptions.

IsFirst

Explicitly overrides whether this is the first breadcrumb in the trail (suppressing its leading separator), bypassing the cascading-parent lookup used for inline (ChildContent) usage. Set by TwBreadcrumb when rendering from its Breadcrumbs list, where items aren't wrapped in a CascadingValue back to the parent.

[Parameter]
public bool? IsFirst { get; set; }

Property Value

bool?

Label

Gets or sets the label text display associated with the entity.

[Parameter]
public string? Label { get; set; }

Property Value

string

Remarks

The name is a required field and cannot be null or empty. It is used to identify the entity in various contexts.

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitialized()

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

protected override void OnInitialized()