RadzenButton component.
RadzenButton.ImageAlternateText
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenToggleButton : RadzenButton, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent<RadzenToggleButton Click=@(args => Console.WriteLine("Button clicked")) Text="ToggleButton" />Gets or sets the aria-controls attribute.
public string AriaControls { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the aria-controls attribute. |
Gets or sets the aria-expanded attribute.
public string AriaExpanded { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the aria-expanded attribute. |
Gets or sets the aria-haspopup attribute.
public string AriaHasPopup { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the aria-haspopup attribute. |
Gets or sets the aria-label attribute.
public string AriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the aria-label attribute. |
Gets or sets the change.
public EventCallback<bool> Change { get; set; }
| Type | Description |
|---|---|
| EventCallback<bool> | Gets or sets the change. |
Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField.
protected string CurrentPlaceholder { get; }
| Type | Description |
|---|---|
| string | Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField. |
Gets or sets the edit context.
public Forms.EditContext EditContext { get; set; }
| Type | Description |
|---|---|
| Forms.EditContext | Gets or sets the edit context. |
Gets the field identifier.
public Forms.FieldIdentifier FieldIdentifier { get; set; }
| Type | Description |
|---|---|
| Forms.FieldIdentifier | Gets the field identifier. |
Gets or sets the form.
public IRadzenForm Form { get; set; }
| Type | Description |
|---|---|
| IRadzenForm | Gets or sets the form. |
Provides support for RadzenFormField integration.
public IFormFieldContext FormFieldContext { get; set; }
| Type | Description |
|---|---|
| IFormFieldContext | Provides support for RadzenFormField integration. |
Gets a value indicating whether this instance has value.
public bool HasValue { get; }
| Type | Description |
|---|---|
| bool | Gets a value indicating whether this instance has value. |
Specifies additional custom attributes that will be rendered by the input.
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, object> | Specifies additional custom attributes that will be rendered by the input. |
Gets a value indicating whether this instance is bound.
public bool IsBound { get; }
| Type | Description |
|---|---|
| bool | Gets a value indicating whether this instance is bound. |
Gets or sets the name.
public string Name { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name. |
Gets or sets the placeholder.
public string Placeholder { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the placeholder. |
Gets or sets the ToggleButton style.
public ButtonStyle ToggleButtonStyle { get; set; }
| Type | Description |
|---|---|
| ButtonStyle | Gets or sets the ToggleButton style. |
Gets or sets the toggle icon.
public string ToggleIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the toggle icon. |
Gets or sets the ToggleButton shade.
public Shade ToggleShade { get; set; }
| Type | Description |
|---|---|
| Shade | Gets or sets the ToggleButton shade. |
Gets or sets the value.
public bool Value { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets the value. |
Gets or sets the value changed.
public EventCallback<bool> ValueChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<bool> | Gets or sets the value changed. |
Gets or sets the value expression.
public Expressions.Expression<Func<bool>> ValueExpression { get; set; }
| Type | Description |
|---|---|
| Expressions.Expression<Func<bool>> | Gets or sets the value expression. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Gets the value.
public object GetValue()
| Type | Description |
|---|---|
| object | System.Object. |
public override Task OnClick(MouseEventArgs args)
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | args |
| Type | Description |
|---|---|
| Task |
Handles the context menu event.
public override Task OnContextMenu(MouseEventArgs args)
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | args | The MouseEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task | Task. |
Sets the parameters asynchronous.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
| Type | Description |
|---|---|
| Task | Task. |