Class MudTabPanel
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudTabPanel : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IAsyncDisposable
- Inheritance
-
MudTabPanel
- Implements
- Inherited Members
- Extension Methods
Constructors
MudTabPanel()
public MudTabPanel()
Fields
PanelRef
Reference to the underlying panel element.
public ElementReference PanelRef
Field Value
Properties
BadgeColor
The color of the badge.
[Parameter]
[Category("Appearance")]
public Color BadgeColor { get; set; }
Property Value
BadgeData
Optional information to be showed into a badge
[Parameter]
[Category("Behavior")]
public object? BadgeData { get; set; }
Property Value
BadgeDot
Optional information to show the badge as a dot.
[Parameter]
[Category("Behavior")]
public bool BadgeDot { get; set; }
Property Value
ChildContent
Child content of component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Disabled
If true, the tabpanel will be disabled.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
ID
Unique TabPanel ID. Useful for activation when Panels are dynamically generated.
[Parameter]
[Category("Behavior")]
public object? ID { get; set; }
Property Value
Icon
Icon placed before the text if set.
[Parameter]
[Category("Behavior")]
public string? Icon { get; set; }
Property Value
IconColor
The color of the Icon.
[Parameter]
[Category("Behavior")]
public Color IconColor { get; set; }
Property Value
Remarks
When set, overrides the IconColor property.
OnClick
Raised when tab is clicked
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
ShowCloseIcon
MudDynamicTabs: If true, shows the close icon in the TabPanel.
[Parameter]
[Category("Behavior")]
public bool ShowCloseIcon { get; set; }
Property Value
TabContent
Tab content of component.
[Parameter]
[Category("Behavior")]
public RenderFragment? TabContent { get; set; }
Property Value
TabWrapperContent
Tab content wrapper of component. It is used to wrap the content of a tab heading in a user supplied div or component. Use @context in the TabWrapperContent to render the tab header within your custom wrapper. This is most useful with tooltips, which must wrap the entire content they refer to.
[Parameter]
[Category("Behavior")]
public RenderFragment<RenderFragment>? TabWrapperContent { get; set; }
Property Value
Text
Text will be displayed in the TabPanel as TabTitle. Text is no longer rendered as a MarkupString, so use the TabContent RenderFragment instead for HTML content.
[Parameter]
[Category("Behavior")]
public string? Text { get; set; }
Property Value
ToolTip
TabPanel Tooltip. It will be ignored if TabContent is provided.
[Parameter]
[Category("Behavior")]
public string? ToolTip { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
DisposeAsync()
public ValueTask DisposeAsync()
Returns
OnAfterRenderAsync(bool)
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
bool
Returns
OnInitialized()
protected override void OnInitialized()