A button in the generic dialog primitive.

Pure, Foundry-free description of a dialog button — the dialog boundary function maps it onto the underlying Foundry dialog implementation.

interface DialogButtonSpec {
    action: string;
    default?: boolean;
    icon?: string;
    label?: string;
}

Properties

action: string

Identifier returned as the action when this button is pressed.

default?: boolean

Whether this button is the default (activated on Enter).

icon?: string

Optional icon class (e.g. a Font Awesome class).

label?: string

Button label (defaults to action).