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

Type declaration

  • Optionalid?: string
  • OptionalkeyCode?: string

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

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

    Callback when folder closed.

      • (): void
      • Returns void

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

    Callback for context menu.

      • (event?): void
      • Parameters

        Returns void

  • OptionalonOpen?: (() => void)

    Callback when folder opened.

      • (): void
      • Returns void

  • 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.