Type Alias TJSDialogButtonData
TJSDialogButtonData : {
autoClose?: boolean;
condition?: boolean | (() => boolean);
icon?: string;
label?: string;
onPress?: string | ((data?: {
application?: TJSDialog;
}) => any);
styles?: {
[key: string]: string | null;
};
}
autoClose?: boolean;
condition?: boolean | (() => boolean);
icon?: string;
label?: string;
onPress?: string | ((data?: {
application?: TJSDialog;
}) => any);
styles?: {
[key: string]: string | null;
};
}
Type declaration
Optional
autoClose ?: booleanWhen 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?: 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;
}) => any)Callback 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 | null;
}Inline styles to apply to the button.
[key: string]: string | null
TJSDialog button data.