Class MBSegmentedButtonSingle<TItem>
A Material Theme segmented button orientated as a single-select.
public class MBSegmentedButtonSingle<TItem> : SingleSelectComponent<TItem, MBIconBearingSelectElement<TItem>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
TItem
- Inheritance
-
InputComponent<TItem>SingleSelectComponent<TItem, MBIconBearingSelectElement<TItem>>MBSegmentedButtonSingle<TItem>
- Implements
- Inherited Members
Constructors
MBSegmentedButtonSingle()
public MBSegmentedButtonSingle()
Properties
BadgeExited
When true collapses the badge.
[Parameter]
public bool BadgeExited { get; set; }
Property Value
BadgeStyle
The badge's style - see MBBadgeStyle, defaults to ValueBearing.
[Parameter]
public MBBadgeStyle BadgeStyle { get; set; }
Property Value
BadgeValue
The button's density.
[Parameter]
public string BadgeValue { get; set; }
Property Value
HasBadge
Determines whether the button has a badge - defaults to false.
[Parameter]
public bool HasBadge { get; set; }
Property Value
IconFoundry
The foundry to use for both leading and trailing icons.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Overrides IconFoundryName
[Parameter]
public IMBIconFoundry? IconFoundry { 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()
Returns
OnParametersSetAsync()
When overriding this, call await base.OnParametersSetAsync();
before any user code unless there is a very good reason not to.
protected override Task OnParametersSetAsync()