Table of Contents

Class VmDialogParameters

Namespace
Dmnk.Blazor.Dialogs.Api
Assembly
Dmnk.Blazor.Dialogs.dll

Core parameters that apply to all dialogs.

public class VmDialogParameters
Inheritance
VmDialogParameters
Inherited Members

Constructors

VmDialogParameters()

public VmDialogParameters()

Properties

AllowCancel

Whether to allow the user to dismiss the dialoge by clicking on a generic "X" close button or hitting escape. If this is set to false, the dialog can only be closed with the Dialog property of the viewmodel.

public bool AllowCancel { get; init; }

Property Value

bool

Height

See Width

public string Height { get; init; }

Property Value

string

Icon

Define the icon to be shown in the dialog header.

public Icon? Icon { get; init; }

Property Value

Icon

Title

The title that will be shown in the dialog header.

public string? Title { get; init; }

Property Value

string

TitleMarkup

USE ONLY WITH TRUSTED DATA. Like Title, but allows for arbitrary HTML markup. Using untrusted data here can lead to XSS vulnerabilities.

public MarkupString? TitleMarkup { get; init; }

Property Value

MarkupString?

Width

Needs to be a valid value for the CSS width property.

This also means you can set computed values such as min(100vw, 700px) to set a maximum value.

public string Width { get; init; }

Property Value

string