Type Alias ButtonData
type ButtonData = {
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 };
}
Index
Properties
Properties
OptionalautoClose 
autoClose?: boolean
When false, the dialog does not automatically close when button selected.
Optionalcondition
condition?: boolean | (() => boolean)
Determines if the button is accessible providing a truthy value.
Optionalicon
icon?: string
Button icon; you should supply the direct Font Awesome class names: IE "fas fa-check".
Optionallabel
label?: string
Button label; will be localized.
OptionalonPress 
Callback for button press. When defined as a string, any matching function by name exported from the content Svelte component is invoked.
Optionalstyles
styles?: { [key: string]: string }
Inline styles to apply to the button.
TJSDialog button data.