Class RadzenSidebarToggle
RadzenSidebarToggle component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenSidebarToggle : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
RadzenSidebarToggle()
RadzenSidebarToggle component.
Declaration
public RadzenSidebarToggle()
Properties
Click
Gets or sets the click callback.
Declaration
[Parameter]
public EventCallback<EventArgs> Click { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<EventArgs> | The click callback. |
Icon
Gets or sets the icon.
Declaration
[Parameter]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
string | The icon. |
ToggleAriaLabel
Gets or sets the add button aria-label attribute.
Declaration
[Parameter]
public string ToggleAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenSidebarToggle component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |
Overrides
OnClick(EventArgs)
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 |