Class MBDrawer
This is a general purpose Material Theme drawer.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBDrawer : ComponentFoundation, IDisposable
Properties
| Improve this Doc View SourceChildContent
The drawer contents.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
CloseOnNavigate
Closes the drawer when NotifyNavigation() is called if True. Defaults to True.
Declaration
public bool CloseOnNavigate { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsDismissible
The drawer can be dismissed if True. Defaults to True.
Declaration
public bool IsDismissible { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
StartOpen
Determines whether the drawer should be open on startup. Defaults to False.
Declaration
public bool StartOpen { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceNotifyNavigation()
Called by the consumer to tell the drawer that navigation has taken place.
Declaration
public void NotifyNavigation()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Toggle()
Toggles the drawer's state.
Declaration
public void Toggle()
Toggle(Boolean)
Toggles the drawer's state to the requested value.
Declaration
public void Toggle(bool open)
Parameters
Type | Name | Description |
---|---|---|
Boolean | open |