Type Alias TJSDialogButtonData
TJSDialogButtonData: {
autoClose?: boolean;
condition?: boolean | () => boolean;
icon?: string;
label?: string;
onPress?: string | (data?: { application?: TJSDialog }) => any;
styles?: { [key: string]: string };
}
autoClose?: boolean;
condition?: boolean | () => boolean;
icon?: string;
label?: string;
onPress?: string | (data?: { application?: TJSDialog }) => any;
styles?: { [key: string]: string };
}
Type declaration
Optional
autoClose?: booleanWhen false the dialog does not automatically close when button selected; default: true.
Optional
condition?: boolean | () => booleanDetermines if the button is accessible providing a truthy value.
Optional
icon?: stringButton icon; you should supply the direct Font Awesome class names: IE "fas fa-check".
Optional
label?: stringButton label; will be localized.
Optional
onPress?: string | (data?: { application?: TJSDialog }) => anyCallback for button press. When defined as a string any matching function by name exported from content Svelte component is invoked.
Optional
styles?: { [key: string]: string }Inline styles to apply to the button.
TJSDialog button data.