Type Alias TJSMenuData
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 };
}
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
Optional
efx?: FunctionOptional
items?: Iterable<TJSMenuItemData>The data driven menu items.
Optional
keyCode?: stringThe key code to activate menu items.
Optional
offset?: { x?: number; y?: number }Optional X / Y offsets for the menu display.
Optional
slotAfter?: { class: Function; props?: object }A minimal Svelte config defining a menu item component after the main data driven menu items.
Optional
slotBefore?: { class: Function; props?: object }A minimal Svelte config defining a menu item component before the main data driven menu items.
Optional
slotDefault?: { class: Function; props?: object }A minimal Svelte config defining the default content component replacing the data driven menu items.
Optional
styles?: { [key: string]: string }Styles to be applied inline.
Optional
transitionOptions?: { duration: number; easing: EasingReference }Custom transition options for duration and easing function reference. The default easing function is
quintOut
.
Currently unused; for any future action effects.