Class MBSlidingTabBar<TItem>
An MBTabBar<TItem> with a MBSlidingContent<TItem> immediately beneath showing tabbed content.
public class MBSlidingTabBar<TItem> : InputComponent<int>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
TItem
- Inheritance
-
MBSlidingTabBar<TItem>
- Implements
- Inherited Members
Constructors
MBSlidingTabBar()
public MBSlidingTabBar()
Properties
Content
Content render fragments under the tab bar.
[Parameter]
public RenderFragment<TItem> Content { get; set; }
Property Value
- RenderFragment<TItem>
Density
The tab bar's density.
[Parameter]
public MBDensity? Density { get; set; }
Property Value
GetKeysFunc
A function delegate to return the parameters for @key
attributes. If unused
"fake" keys set to GUIDs will be used.
[Parameter]
public Func<TItem, object> GetKeysFunc { get; set; }
Property Value
Icon
Icon render fragments.
[Parameter]
public RenderFragment<TItem> Icon { get; set; }
Property Value
- RenderFragment<TItem>
Items
The tab details plus items to be displayed under the tab bar depending upon tab index.
[Parameter]
public IEnumerable<TItem> Items { get; set; }
Property Value
- IEnumerable<TItem>
Label
Label render fragments.
[Parameter]
public RenderFragment<TItem> Label { get; set; }
Property Value
- RenderFragment<TItem>
StackIcons
Stack icons vertically if True, otherwise icons are leading.
[Parameter]
public bool StackIcons { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnInitializedAsync()
protected override Task OnInitializedAsync()