Class RadzenSidebar
RadzenSidebar component.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenSidebar : RadzenComponentWithChildren, IDisposable
Properties
Expanded
Gets or sets a value indicating whether this RadzenSidebar is expanded.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ExpandedChanged
Gets or sets the expanded changed callback.
Declaration
public EventCallback<bool> ExpandedChanged { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<System.Boolean> | The expanded changed callback. |
Layout
The RadzenLayout this component is nested in.
Declaration
public RadzenLayout Layout { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
public bool Responsive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Style
Gets or sets the style.
Declaration
public override string Style { get; set; }
Property Value
Type | Description |
---|---|
System.String | The style. |
Overrides
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
GetStyle()
Gets the style.
Declaration
protected string GetStyle()
Returns
Type | Description |
---|---|
System.String | System.String. |
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Called by the Blazor runtime when parameters are set.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task |
Overrides
Toggle()
Toggles this instance expanded state.
Declaration
public void Toggle()