Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

ConfirmDialog

Since 0.1.0-alpha.24
Asks before a menu item, row action or link acts: one dialog for a whole list.

IzzyBlazor.ConfirmDialog in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (8)

Forstring requiredAdded in 0.1.0-alpha.24

What it asks for: the id of a button or link, or a CSS selector when it starts with #, . or [, such as .delete-note for every row's Delete.

Titlestring requiredAdded in 0.1.0-alpha.24

The question, such as "Delete this note?". Also the dialog's accessible name. {0} is the data-confirm value of the one clicked: "Delete {0}?".

Messagestring?Added in 0.1.0-alpha.24

A line under the question, such as "This can't be undone." {0} works as in Title.

BodyRenderFragment?Added in 0.1.0-alpha.24

More content under the question, the same for whichever was clicked.

ConfirmTextstring? = "Confirm"Added in 0.1.0-alpha.24

The confirm button's text, such as "Delete". Defaults to "Confirm".

CancelTextstring? = "Cancel"Added in 0.1.0-alpha.24

The cancel button's text. Defaults to "Cancel".

AccentAccent = Accent.PrimaryAdded in 0.1.0-alpha.24

The confirm button's color: Danger for deleting.

Idstring?Added in 0.1.0-alpha.24

The dialog's id. One is made up without it.

Events (0)

No events.

Types (1)

Accent

class

The color of a control: buttons, badges, tags, banners, progress bars and menu items. Primary, Neutral and Danger are the roles; emphasis comes from the variant (solid, soft, outline, ghost, link), not from more colors. For one control in another color, use Of (any CSS color) or Token (a theme token); text on it is chosen for contrast.

Accent members
MemberDescription
Primary

The brand color, for the main action.

Neutral

A quiet, gray action.

Danger

A destructive action, such as Delete.

Of(string css)

Any CSS color, such as "#0d9488". Text on it is black or white, whichever reads better.

Token(string name)

A theme token, such as "brand" for --ib-color-brand; text on it uses --ib-color-on-brand when the theme defines it.

From(Color color)

A Color as an accent, such as Color.Success.

Connection lost

Rejoining the server…