MudMessageBox API

Properties
Name Type Default Description
Behavior
CancelButton
RenderFragment
null Define the cancel button as a render fragment (overrides CancelText). Must be a MudButton
CancelText
string
null Text of the cancel button. Leave null to hide the button.
IsVisible
bool
False Bind this two-way to show and close an inlined message box. Has no effect on opened msg boxes
MarkupMessage
MarkupString
The message box message as markup string.
Message
string
null The message box message as string.
MessageContent
RenderFragment
null Define the message box body as a renderfragment (overrides Message)
NoButton
RenderFragment
null Define the no button as a render fragment (overrides NoText). Must be a MudButton
NoText
string
null Text of the no button. Leave null to hide the button.
Title
string
null The message box title. If null or empty, title will be hidden
TitleContent
RenderFragment
null Define the message box title as a renderfragment (overrides Title)
YesButton
RenderFragment
null Define the yes button as a render fragment (overrides YesText). Must be a MudButton
YesText
string
"OK" Text of the yes/OK button. Leave null to hide the button.
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.
OnCancel EventCallback<bool> Fired when the cancel button is clicked or the msg box was closed via the X
OnNo EventCallback<bool> Fired when the no button is clicked
OnYes EventCallback<bool> Fired when the yes button is clicked
Methods
Name Parameters Return Description
Close()
Task<Boolean?> Show(DialogOptions options)
DialogOptions options
Task<bool?>

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

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