interface DialogV2Button {
    action: string;
    callback?: DialogV2ButtonCallback;
    class?: string;
    default?: boolean;
    disabled?: boolean;
    icon?: string;
    label: string;
    style?: Record<string, string>;
    type?: string;
}

Properties

action: string

The button action identifier.

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.

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.

disabled?: boolean

Whether the button is disabled

icon?: string

FontAwesome icon classes.

label: string

The button label. Will be localized.

style?: Record<string, string>

CSS style to apply to the button.

type?: string

The button type.