TJSDialogButtonData: {
    autoClose?: boolean;
    condition?: boolean | (() => boolean);
    icon?: string;
    label?: string;
    onPress?: string | ((application?) => any);
    styles?: Record<string, string>;
}

TJSDialog button data.

Type declaration

  • Optional autoClose?: boolean

    When false the dialog does not automatically close when button selected; default: true.

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

    Determines if the button is accessible providing a truthy value.

  • Optional icon?: string

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

  • Optional label?: string

    Button label; will be localized.

  • Optional onPress?: string | ((application?) => any)

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

  • Optional styles?: Record<string, string>

    Inline styles to apply to the button.