TJSMenuData: {
    efx?: Function;
    items?: Iterable<TJSMenuItemData>;
    keyCode?: string;
    offset?: { x?: number; y?: number };
    slotAfter?: { class: Function; props?: object };
    slotBefore?: { class: Function; props?: object };
    slotDefault?: { class: Function; props?: object };
    styles?: { [key: string]: string };
    transitionOptions?: { duration: number; easing: EasingReference };
}

Type declaration

  • Optionalefx?: Function

    Currently unused; for any future action effects.

  • Optionalitems?: Iterable<TJSMenuItemData>

    The data driven menu items.

  • OptionalkeyCode?: string

    The key code to activate menu items.

  • Optionaloffset?: { x?: number; y?: number }

    Optional X / Y offsets for the menu display.

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

    A minimal Svelte config defining a menu item component after the main data driven menu items.

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

    A minimal Svelte config defining a menu item component before the main data driven menu items.

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

    A minimal Svelte config defining the default content component replacing the data driven menu items.

  • Optionalstyles?: { [key: string]: string }

    Styles to be applied inline.

  • OptionaltransitionOptions?: { duration: number; easing: EasingReference }

    Custom transition options for duration and easing function reference. The default easing function is quintOut.