Class BOBTabs
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
[GenerateComponentInfo]
public class BOBTabs : BOBVariantComponentBase<BOBTabs, BOBTabsVariant>, IVariantComponent<BOBTabsVariant>, IVariantComponent, IHasSize
- Inheritance
-
objectComponentBaseBOBTabs
- Implements
- Inherited Members
Constructors
BOBTabs()
public BOBTabs()
Properties
ActiveTab
ActiveTab.
[Parameter]
public string? ActiveTab { get; set; }
Property Value
- string
ActiveTabChanged
ActiveTabChanged.
[Parameter]
public EventCallback<string?> ActiveTabChanged { get; set; }
Property Value
- EventCallback<string>
BuiltInTemplates
protected override Dictionary<BOBTabsVariant, Func<BOBTabs, RenderFragment>> BuiltInTemplates { get; }
Property Value
- Dictionary<BOBTabsVariant, Func<BOBTabs, RenderFragment>>
ChildContent
Markup that emits the tab definitions (typically <BOBTab> children).
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
- RenderFragment
DefaultVariant
Default variant used when no explicit variant is specified.
public override BOBTabsVariant DefaultVariant { get; }
Property Value
FullWidth
When true, the component spans the full width of its container.
[Parameter]
public bool FullWidth { get; set; }
Property Value
- bool
Size
Visual size of the tab bar.
[Parameter]
public BOBSize Size { get; set; }
Property Value
Methods
BuildComponentDataAttributes(Dictionary<string, object>)
Override this method to add component-specific data attributes. Called during attribute building process.
public override void BuildComponentDataAttributes(Dictionary<string, object> attributes)
Parameters
attributesDictionary<string, object>
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
DisposeAsync()
public override ValueTask DisposeAsync()
Returns
- ValueTask
OnAfterRenderAsync(bool)
Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any Microsoft.AspNetCore.Components.ElementReference fields will be populated by the time this runs.
This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated.
Note that the component does not automatically re-render after the completion of any returned System.Threading.Tasks.Task, because that would cause an infinite render loop.
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRenderboolSet to
trueif this is the first time Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender(bool) has been invoked on this component instance; otherwisefalse.
Returns
- Task
A System.Threading.Tasks.Task representing any asynchronous operation.
Remarks
The Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender(bool) and Microsoft.AspNetCore.Components.ComponentBase.OnAfterRenderAsync(bool) lifecycle methods
are useful for performing interop, or interacting with values received from @ref.
Use the firstRender parameter to ensure that initialization work is only performed
once.