| Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/main/popup/src/menu/ |
| Current File : /var/www/element/data/www/revenuestory.ru/bitrix/js/main/popup/src/menu/menu-types.js |
import { PopupOptions } from '../popup/popup-types';
export type MenuOptions = PopupOptions & {
items: MenuItemOptions[],
subMenuOptions?: PopupOptions,
};
export type MenuItemOptions = {
id?: string,
text?: string,
html?: string,
title?: string,
disabled?: boolean,
href?: string,
target?: string,
className?: string,
delimiter?: boolean,
menuShowDelay?: number,
subMenuOffsetX?: number,
events?: { [event: string]: (event) => {} },
dataset?: { [key: string]: string },
onclick?: () => {} | string,
cacheable?: boolean,
items?: MenuItemOptions[]
};