Class TelerikToggleButton
The class for the Telerik Toggle Button component.
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikToggleButton : ButtonBase, IDisposable
Constructors
TelerikToggleButton()
Declaration
public TelerikToggleButton()
Properties
OnClick
The Click handler of the toggle button. Fired before SelectedChanged.
Declaration
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>
|
Selected
Defines if the ToggleButton is selected.
Declaration
public bool Selected { get; set; }
Property Value
System.Boolean
|
SelectedChanged
Fires when the user changes the button state by clicking, tapping, hitting Space or Enter.
Declaration
public EventCallback<bool> SelectedChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.Boolean>
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
Dispose()
FocusAsync()
Moves focus to the button.
Declaration
public Task FocusAsync()
Returns
System.Threading.Tasks.Task
|
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|