Class MBRadioButtonGroup<TItem>
A group of MBRadioButton<TItem>s displayed horizontally or vertically.
public class MBRadioButtonGroup<TItem> : SingleSelectComponent<TItem, MBSelectElement<TItem>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
TItem
- Inheritance
-
InputComponent<TItem>SingleSelectComponent<TItem, MBSelectElement<TItem>>MBRadioButtonGroup<TItem>
- Implements
- Inherited Members
Constructors
MBRadioButtonGroup()
public MBRadioButtonGroup()
Properties
Density
The radio button's density.
[Parameter]
public MBDensity? Density { get; set; }
Property Value
Vertical
Stack the radio buttons vertically if True, otherwise default horizontal placement.
[Parameter]
public bool Vertical { 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()