MudDialogInstance API

Pages
Properties
Name Type Default Description
Behavior
Content
RenderFragment
null
Id
Guid
00000000-0000-0000-0000-000000000000
Title
string
null
TitleContent
RenderFragment
null
Appearance
CloseIcon
string
Custom close icon.
Misc
Options
DialogOptions
Common
Class
string
"mud-dialog mud-dialog-width-sm" 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.
Methods
Name Parameters Return Description
Cancel() Cancel the dialog. DialogResult.Canceled will be set to true
CancelAll() Cancels all dialogs in dialog provider collection.
Close() <para>Close and return null. </para> <para>This is a shorthand of Close(DialogResult.Ok((object)null));</para>
Close(DialogResult dialogResult)
DialogResult dialogResult
<para>Close with dialog result.</para> <para>Usage: Close(DialogResult.Ok(returnValue))</para>
Close<T>(T returnValue)
returnValue
<para>Close and directly pass a return value. </para> <para>This is a shorthand for Close(DialogResult.Ok(returnValue))</para>
Dispose()
Register(MudDialog dialog)
MudDialog dialog
SetOptions(DialogOptions options)
DialogOptions options
SetTitle(string title)
string title
StateHasChanged()

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

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