Class DialogOptions
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
The customization options for a MudDialog.
public record DialogOptions : IEquatable<DialogOptions>
- Inheritance
-
DialogOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
DialogOptions()
public DialogOptions()
DialogOptions(DialogOptions)
protected DialogOptions(DialogOptions original)
Parameters
original
DialogOptions
Properties
BackdropClick
Allows closing the dialog by clicking outside of the dialog.
public bool? BackdropClick { get; init; }
Property Value
- bool?
Remarks
Defaults to true
.
BackgroundClass
The custom CSS classes to apply to the dialog background.
public string? BackgroundClass { get; init; }
Property Value
Remarks
Multiple classes must be separated by spaces.
CloseButton
Shows a close button in the top-right corner of the dialog.
public bool? CloseButton { get; init; }
Property Value
- bool?
Remarks
Defaults to false
.
CloseOnEscapeKey
Allows closing the dialog by pressing the Escape key.
public bool? CloseOnEscapeKey { get; init; }
Property Value
- bool?
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FullScreen
Sets the size of the dialog to the entire screen.
public bool? FullScreen { get; init; }
Property Value
- bool?
Remarks
Defaults to false
.
FullWidth
Sets the width of the dialog to the width of the screen.
public bool? FullWidth { get; init; }
Property Value
- bool?
Remarks
Defaults to false
.
MaxWidth
The maximum allowed width of the dialog.
public MaxWidth? MaxWidth { get; init; }
Property Value
Remarks
Defaults to null
.
NoHeader
Hides the dialog header.
public bool? NoHeader { get; init; }
Property Value
- bool?
Remarks
Defaults to false
.
Position
The location of the dialog.
public DialogPosition? Position { get; init; }
Property Value
Remarks
Defaults to null
.
Methods
Equals(DialogOptions?)
public virtual bool Equals(DialogOptions? other)
Parameters
other
DialogOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DialogOptions?, DialogOptions?)
public static bool operator ==(DialogOptions? left, DialogOptions? right)
Parameters
left
DialogOptionsright
DialogOptions
Returns
operator !=(DialogOptions?, DialogOptions?)
public static bool operator !=(DialogOptions? left, DialogOptions? right)
Parameters
left
DialogOptionsright
DialogOptions