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

TJSDialog button data.

Type declaration

  • OptionalautoClose?: boolean

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

  • Optionalcondition?: boolean | () => boolean

    Determines if the button is accessible providing a truthy value.

  • Optionalicon?: string

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

  • Optionallabel?: string

    Button label; will be localized.

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

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

  • Optionalstyles?: { [key: string]: string }

    Inline styles to apply to the button.