TJSDialog button data.

type ButtonData = {
    autoClose?: boolean;
    condition?: boolean | (() => boolean);
    icon?: string;
    label?: string;
    onPress?: string | ((data?: { application?: TJSDialog }) => any);
    styles?: { [key: string]: string };
}
Index

Properties

autoClose?: boolean

When false, the dialog does not automatically close when button selected.

true

condition?: boolean | (() => boolean)

Determines if the button is accessible providing a truthy value.

icon?: string

Button icon; you should supply the direct Font Awesome class names: IE "fas fa-check".

label?: string

Button label; will be localized.

onPress?: string | ((data?: { application?: TJSDialog }) => any)

Callback for button press. When defined as a string, any matching function by name exported from the content Svelte component is invoked.

styles?: { [key: string]: string }

Inline styles to apply to the button.