Type Alias TJSFolderData
TJSFolderData: {
enabled?: boolean;
id?: string;
keyCode?: string;
label?: string;
onClose?: () => void;
onContextMenu?: (event?: MouseEvent) => void;
onOpen?: () => void;
options?: TJSFolderOptions;
slotDefault?: { class: Function; props?: object };
slotLabel?: { class: Function; props?: object };
slotSummaryEnd?: { class: Function; props?: object };
store?: Writable<boolean>;
styles?: object;
}
enabled?: boolean;
id?: string;
keyCode?: string;
label?: string;
onClose?: () => void;
onContextMenu?: (event?: MouseEvent) => void;
onOpen?: () => void;
options?: TJSFolderOptions;
slotDefault?: { class: Function; props?: object };
slotLabel?: { class: Function; props?: object };
slotSummaryEnd?: { class: Function; props?: object };
store?: Writable<boolean>;
styles?: object;
}
Type declaration
Optional
enabled?: boolean- Enabled state.
Optional
id?: stringOptional
keyCode?: stringDefines the key event code to open / close summary when focused.
Optional
label?: stringOptional
onClose?: () => voidCallback when folder closed.
Optional
onContextMenu?: (event?: MouseEvent) => voidCallback for context menu.
Optional
onOpen?: () => voidCallback when folder opened.
Optional
options?: TJSFolderOptionsAdditional folder options.
Optional
slotDefault?: { class: Function; props?: object }A minimal Svelte config defining the default content component.
Optional
slotLabel?: { class: Function; props?: object }A minimal Svelte config defining the summary label component.
Optional
slotSummaryEnd?: { class: Function; props?: object }A minimal Svelte config defining the summary end component.
Optional
store?: Writable<boolean>Folder open / close store.
Optional
styles?: objectAdditional styles to apply.