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;
}

Type declaration

  • Optionalenabled?: boolean
    • Enabled state.
  • Optionalid?: string
  • OptionalkeyCode?: string

    Defines the key event code to open / close summary when focused.

  • Optionallabel?: string
  • OptionalonClose?: () => void

    Callback when folder closed.

  • OptionalonContextMenu?: (event?: MouseEvent) => void

    Callback for context menu.

  • OptionalonOpen?: () => void

    Callback when folder opened.

  • Optionaloptions?: TJSFolderOptions

    Additional folder options.

  • OptionalslotDefault?: { class: Function; props?: object }

    A minimal Svelte config defining the default content component.

  • OptionalslotLabel?: { class: Function; props?: object }

    A minimal Svelte config defining the summary label component.

  • OptionalslotSummaryEnd?: { class: Function; props?: object }

    A minimal Svelte config defining the summary end component.

  • Optionalstore?: Writable<boolean>

    Folder open / close store.

  • Optionalstyles?: object

    Additional styles to apply.