Type Alias TJSFolderData
TJSFolderData : {
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;
}
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
id?: stringOptional
keyCode ?: stringDefines the key event code to open / close summary when focused.
Optional
label?: stringOptional
onClose ?: (() => void)Callback when folder closed.
- (): void
Returns void
Optional
onContext ?: ((event?: MouseEvent) => void)Menu Callback for context menu.
- (event?): void
Parameters
Optional
event: MouseEvent
Returns void
Optional
onOpen ?: (() => void)Callback when folder opened.
- (): void
Returns void
Optional
options?: TJSFolderOptionsAdditional folder options.
Optional
slotDefault ?: {
class: Function;
props?: object;
}A minimal Svelte config defining the default content component.
class: Function
Optional
props?: object
Optional
slotLabel ?: {
class: Function;
props?: object;
}A minimal Svelte config defining the summary label component.
class: Function
Optional
props?: object
Optional
slotSummary ?: {End
class: Function;
props?: object;
}A minimal Svelte config defining the summary end component.
class: Function
Optional
props?: object
Optional
store?: Writable<boolean>Folder open / close store.
Optional
styles?: objectAdditional styles to apply.