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

    • Optionalx?: number
    • Optionaly?: number
  • 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 | null;
    }

    Styles to be applied inline.

    • [key: string]: string | null
  • OptionaltransitionOptions?: {
        duration: number;
        easing: EasingReference;
    }

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