RadzenSidebarToggle Class

RadzenSidebarToggle component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenSidebarToggle

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenSidebarToggle : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenSidebarTogglelink

RadzenSidebarToggle component.

Declaration
public RadzenSidebarToggle()

Properties

Clicklink

Gets or sets the click callback.

Declaration
public EventCallback<EventArgs> Click { get; set; }
Property Value
Type Description
EventCallback<EventArgs>Gets or sets the click callback.

Iconlink

Gets or sets the icon.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the icon.

ToggleAriaLabellink

Gets or sets the add button aria-label attribute.

Declaration
public string ToggleAriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the add button aria-label attribute.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnClicklink

Handles the click event.

Declaration
public Task OnClick(EventArgs args)
Parameters
Type Name Description
EventArgs args The EventArgs instance containing the event data.
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙