Class MBMenuSurface
This is a general purpose Material Theme menu.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBMenuSurface : ComponentFoundation, IDisposable
Properties
| Improve this Doc View SourceChildContent
A render fragement as a set of MBListItems.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
MenuSurfacePositioning
Regular, fullwidth or fixed positioning/width.
Declaration
public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; }
Property Value
Type | Description |
---|---|
MBMenuSurfacePositioning |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
Overrides
| Improve this Doc View SourceNotifyClosed()
For Material Theme to notify of menu closure via JS Interop.
Declaration
public void NotifyClosed()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
ToggleAsync()
Toggles the menu open and closed.
Declaration
public async Task ToggleAsync()
Returns
Type | Description |
---|---|
Task |