MudDialog API

Pages
Properties
Name Type Default Description
Behavior
DefaultFocus
DefaultFocus
DefaultFocus.Element Define the element that will receive the focus when the dialog is opened
DialogActions
RenderFragment
null Define the action buttons here
DialogContent
RenderFragment
null Define the dialog body here
IsVisible
bool
False Bind this two-way to show and close an inlined dialog. Has no effect on opened dialogs
TitleContent
RenderFragment
null Define the dialog title as a renderfragment (overrides Title)
Appearance
ActionsClass
string
null CSS class that will be applied to the action buttons container
ContentClass
string
null CSS class that will be applied to the dialog content
ContentStyle
string
null CSS styles to be applied to the dialog content
DisableSidePadding
bool
False No padding at the sides
TitleClass
string
null CSS class that will be applied to the dialog title container
Misc
Options
DialogOptions
null Default options to pass to Show(), if none are explicitly provided. Typically useful on inline dialogs.
Common
Class
string
null User class names, separated by space.
Style
string
null User styles, applied on top of the component's own classes and styles.
Tag
object
null Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<string, object>
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.
EventCallbacks
Name Type Description
IsVisibleChanged EventCallback<bool> Raised when the inline dialog's display status changes.
OnBackdropClick EventCallback<MouseEventArgs> Defines delegate with custom logic when user clicks overlay behind dialogue. Is being invoked instead of default "Backdrop Click" logic. Setting DisableBackdropClick to "true" disables both - OnBackdropClick as well as the default logic.
Methods
Name Parameters Return Description
Close(DialogResult result)
DialogResult result
Close the currently open inlined dialog
IDialogReference Show(string title, DialogOptions options)
string title
DialogOptions options
IDialogReference
Show this inlined dialog

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

An error has occurred. This application may no longer respond until reloaded. Reload 🗙