interface DialogV2Button {
    action: string;
    label: string;
    icon: string;
    class: string;
    default: boolean;
    callback: DialogV2ButtonCallback;
}

Properties

action: string

The button action identifier.

label: string

The button label. Will be localized.

icon: string

FontAwesome icon classes.

class: string

CSS classes to apply to the button.

default: boolean

Whether this button represents the default action to take if the user submits the form without pressing a button, i.e. with an Enter keypress.

A function to invoke when the button is clicked. The value returned from this function will be used as the dialog's submitted value. Otherwise, the button's identifier is used.