Class MudOverlay
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudOverlay : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IAsyncDisposable
- Inheritance
-
MudOverlay
- Implements
- Inherited Members
- Extension Methods
Constructors
MudOverlay()
public MudOverlay()
Properties
Absolute
If true, use absolute positioning for the overlay.
[Parameter]
[Category("Behavior")]
public bool Absolute { get; set; }
Property Value
AutoClose
If true overlay will set Visible false on click.
[Parameter]
[Category("Click action")]
public bool AutoClose { get; set; }
Property Value
ChildContent
Child content of the component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
DarkBackground
If true applies the themes dark overlay color.
[Parameter]
[Category("Behavior")]
public bool DarkBackground { get; set; }
Property Value
LightBackground
If true applies the themes light overlay color.
[Parameter]
[Category("Behavior")]
public bool LightBackground { get; set; }
Property Value
LockScroll
If true (default), the Document.body element will not be able to scroll
[Parameter]
[Category("Behavior")]
public bool LockScroll { get; set; }
Property Value
LockScrollClass
The css class that will be added to body if lockscroll is used.
[Parameter]
[Category("Behavior")]
public string LockScrollClass { get; set; }
Property Value
OnClick
Fired when the overlay is clicked
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
ScrimClassname
protected string ScrimClassname { get; }
Property Value
ScrollManager
[Inject]
public IScrollManager ScrollManager { get; set; }
Property Value
Styles
protected string Styles { get; }
Property Value
Visible
If true overlay will be visible. Two-way bindable.
[Parameter]
[Category("Behavior")]
public bool Visible { get; set; }
Property Value
VisibleChanged
Fires when Visible changes
[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }
Property Value
ZIndex
Sets the z-index of the overlay.
[Parameter]
[Category("Behavior")]
public int ZIndex { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
DisposeAsync()
public ValueTask DisposeAsync()
Returns
OnAfterRenderAsync(bool)
protected override Task OnAfterRenderAsync(bool firstTime)
Parameters
firstTime
bool
Returns
OnClickHandlerAsync(MouseEventArgs)
protected Task OnClickHandlerAsync(MouseEventArgs ev)