Class TwMenuRadioGroup<TValue>
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
A group of TwMenuRadioItem<TValue> options in a TwMenu or TwContextMenu,
of which one is chosen at a time, such as a sort order or a zoom level. Bind the chosen option with
@bind-Value.
[CascadingTypeParameter("TValue")]
public class TwMenuRadioGroup<TValue> : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Type Parameters
TValueThe type of the options' values.
- Inheritance
-
TwMenuRadioGroup<TValue>
- Implements
- Inherited Members
Constructors
TwMenuRadioGroup()
public TwMenuRadioGroup()
Properties
ChildContent
Gets or sets the group's TwMenuRadioItem<TValue> options.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Label
Gets or sets the group's heading, which assistive technology also reads as the group's name.
[Parameter]
public string? Label { get; set; }
Property Value
Value
Gets or sets the value of the chosen option. Bind it with @bind-Value.
[Parameter]
public TValue? Value { get; set; }
Property Value
- TValue
ValueChanged
Raised with the new value when a person chooses an option.
[Parameter]
public EventCallback<TValue?> ValueChanged { get; set; }
Property Value
- EventCallback<TValue>
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder