Class MBTabBar<TItem>
This is a general purpose Material Theme tab bar.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBTabBar<TItem> : InputComponent<int>, IDisposable
Type Parameters
Name | Description |
---|---|
TItem |
Properties
| Improve this Doc View SourceDensity
The tab bar's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDensity> |
GetKeysFunc
A function delegate to return the parameters for @key
attributes. If unused
"fake" keys set to GUIDs will be used.
Declaration
public Func<TItem, object> GetKeysFunc { get; set; }
Property Value
Type | Description |
---|---|
Func<TItem, Object> |
Icon
Icon render fragments requiring correct icon markup including the "mdc-tab__icon" CSS class. Note that Material Icons always render properly, while some wider Font Awesome icons for instance render too close to the tab text.
Declaration
public RenderFragment<TItem> Icon { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<TItem> |
Items
The list of items for the tab bar.
Declaration
public IEnumerable<TItem> Items { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<TItem> |
Label
Label render fragments.
Declaration
public RenderFragment<TItem> Label { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<TItem> |
StackIcons
Stack icons vertically if True, otherwise icons are leading.
Declaration
public bool StackIcons { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
Overrides
| Improve this Doc View SourceNotifyActivated(Int32)
For Material Theme to notify when a tab is clicked via JS Interop.
Declaration
public void NotifyActivated(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<System.Int32>.OnInitializedAsync()
|
Improve this Doc
View Source
OnParametersSetAsync()
Declaration
protected override async Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<System.Int32>.OnParametersSetAsync()
|
Improve this Doc
View Source
OnValueSetCallback()
Callback for value the value setter.
Declaration
protected void OnValueSetCallback()