Table of Contents

Class RadzenSidebar

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenSidebar component.

public class RadzenSidebar : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenSidebar
Implements
Inherited Members

Constructors

RadzenSidebar()

public RadzenSidebar()

Properties

Expanded

Gets or sets a value indicating whether this RadzenSidebar is expanded.

[Parameter]
public bool Expanded { get; set; }

Property Value

bool

true if expanded; otherwise, false.

ExpandedChanged

Gets or sets the expanded changed callback.

[Parameter]
public EventCallback<bool> ExpandedChanged { get; set; }

Property Value

EventCallback<bool>

The expanded changed callback.

Layout

The RadzenLayout this component is nested in.

[CascadingParameter]
public RadzenLayout Layout { get; set; }

Property Value

RadzenLayout

Responsive

Toggles the responsive mode of the component. If set to true (the default) the component will be expanded on larger displays and collapsed on touch devices. Set to false if you want to disable this behavior. Responsive mode is only available when RadzenSidebar is inside RadzenLayout.

[Parameter]
public bool Responsive { get; set; }

Property Value

bool

Style

Gets or sets the style.

[Parameter]
public override string Style { get; set; }

Property Value

string

The style.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

GetStyle()

Gets the style.

protected string GetStyle()

Returns

string

System.String.

OnInitialized()

protected override void OnInitialized()

SetParametersAsync(ParameterView)

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task

Toggle()

Toggles this instance expanded state.

public void Toggle()