[Go to site: main page, start]

Interface DialogV2Button

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

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 is autofocused

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.

tooltip?: string

The tooltip of the button.

type?: string

The button type.