Type Alias HeaderButton
HeaderButton: {
alignLeft?: boolean;
class?: string;
icon?: string;
keepMinimized?: boolean;
keyCode?: string;
label?: string;
onContextMenu?: HeaderButtonCallback;
onPress?: HeaderButtonCallback;
styles?: { [key: string]: string };
svelte?: Embed;
title?: string;
}
alignLeft?: boolean;
class?: string;
icon?: string;
keepMinimized?: boolean;
keyCode?: string;
label?: string;
onContextMenu?: HeaderButtonCallback;
onPress?: HeaderButtonCallback;
styles?: { [key: string]: string };
svelte?: Embed;
title?: string;
}
Type declaration
Optional
alignLeft?: booleanWhen true the button is left aligned after the window title.
Optional
class?: stringAdditional CSS class to add to the header button.
Optional
icon?: stringIcon class identifier.
Optional
keepMinimized?: booleanKeep the header button visible when the app is minimized.
Optional
keyCode?: stringDefines the KeyboardEvent 'code' that activates the button.
Optional
label?: stringText label or language key to associate with button.
Optional
onContextMenu?: HeaderButtonCallbackCallback when context menu activated. You may modify and return the button data to update it.
Optional
onPress?: HeaderButtonCallbackCallback when pressed. You may modify and return the button data to update it.
Optional
styles?: { [key: string]: string }Hyphen case CSS property key / value object of properties to add as additional inline CSS styles to the button.
Optional
svelte?: EmbedYou may load a custom Svelte component into the header to replace a button.
Note: supports just
class
,props
definition.Optional
title?: stringA tooltip to display when hovered.
Defines the application header button data handled in SvelteApp._getHeaderButtons and associated
getApplicationHeaderButtons
hooks. SvelteApp extends the header button data from !ApplicationHeaderButton bringing an expanded feature set.