Class SfRadioButton<TChecked>
The RadioButton is a graphical user interface element that allows you to select one option from the choices. It contains checked and unchecked states.
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
SfInputBase<TChecked>
SfRadioButton<TChecked>
Inherited Members
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.Click()
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.ChildContent
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.CheckedChanged
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.CheckedExpression
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.EnableHtmlSanitizer
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.Locale
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.HtmlAttributes
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class SfRadioButton<TChecked> : SfInputBase<TChecked>
Type Parameters
Name | Description |
---|---|
TChecked |
Constructors
SfRadioButton()
Declaration
public SfRadioButton()
Properties
Label
Defines the caption for the RadioButton, that describes the purpose of the RadioButton.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LabelPosition
Positions label before
/after
the RadioButton.
The possible values are:
- Before: The label is positioned to left of the RadioButton.
- After: The label is positioned to right of the RadioButton.
Declaration
public LabelPosition LabelPosition { get; set; }
Property Value
Type | Description |
---|---|
LabelPosition |
ValueChange
Event trigger when the RadioButton state has been changed by user interaction.
Declaration
public EventCallback<ChangeArgs<TChecked>> ValueChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ChangeArgs<TChecked>> |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
InitRender()
Declaration
protected override void InitRender()
Overrides
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.InitRender()
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.OnInitializedAsync()