Class MBSegmentedButtonMulti<TItem>
A Material Theme segmented button orientated as a multi-select.
public class MBSegmentedButtonMulti<TItem> : MultiSelectComponent<TItem, MBIconBearingSelectElement<TItem>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
TItem
- Inheritance
-
InputComponent<IList<TItem>>MultiSelectComponent<TItem, MBIconBearingSelectElement<TItem>>MBSegmentedButtonMulti<TItem>
- Implements
- Inherited Members
Constructors
MBSegmentedButtonMulti()
public MBSegmentedButtonMulti()
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
TouchTarget
Inclusion of touch target
[Parameter]
public bool? TouchTarget { get; set; }
Property Value
- bool?
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
NotifyMultiSelected(bool[])
For Material Theme to notify of menu item selection via JS Interop.
[JSInvokable]
public void NotifyMultiSelected(bool[] selected)
Parameters
selected
bool[]
NotifySingleSelected(int)
For Material Theme to notify of menu item selection via JS Interop.
[JSInvokable]
public void NotifySingleSelected(int index)
Parameters
index
int
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()