Class UiTabBar
public class UiTabBar : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IAsyncDisposable
Inheritance
Implements
Properties
ActiveTab
Currently selected tab id. Bind to a string state in the parent.
[Parameter]
public string ActiveTab { get; set; }
ActiveTabChanged
Notification when the user picks a different tab (or the URL fragment
[Parameter]
public EventCallback<string> ActiveTabChanged { get; set; }
AriaLabel
Accessible label for the <nav> landmark — defaults to "Tabs".
[Parameter]
public string AriaLabel { get; set; }
Tabs
Ordered tab descriptors. Required.
[Parameter]
[EditorRequired]
public IReadOnlyList<UiTabBar.Tab> Tabs { get; set; }
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied .
protected override void BuildRenderTree(RenderTreeBuilder __builder)
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or
public ValueTask DisposeAsync()
OnAfterRenderAsync(bool)
Method invoked after each time the component has been rendered interactively and the UI has finished
protected override Task OnAfterRenderAsync(bool firstRender)
OnHashChanged(string?)
Called by JS when the URL hash changes (e.g. browser Back across tabs).
[JSInvokable]
public Task OnHashChanged(string? tab)