UNPKG

@syncfusion/ej2-navigations

Version:

A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another

47 lines (40 loc) 1.4 kB
import { attributes, getUniqueID, Collection, NotifyPropertyChanges, INotifyPropertyChanged, Property, removeClass, isNullOrUndefined, addClass } from '@syncfusion/ej2-base';import { getZindexPartial } from '@syncfusion/ej2-popups';import { MenuBase, MenuItem } from '../common/menu-base';import { MenuItemModel } from './../common/menu-base-model'; import {MenuBaseModel} from "../common/menu-base-model"; /** * Interface for a class ContextMenu */ export interface ContextMenuModel extends MenuBaseModel{ /** * Specifies target element selector in which the ContextMenu should be opened. * * @default '' */ target?: string; /** * Specifies the filter selector for elements inside the target in that the context menu will be opened. * * @default '' */ filter?: string; /** * Specifies menu items with its properties which will be rendered as ContextMenu. * * @default [] * @aspType object * @blazorType object */ items?: MenuItemModel[]; /** * This property allows you to define custom templates for items in the ContextMenu. * * @default null * @aspType string */ itemTemplate?: string | Function; /** * Specifies whether to enable / disable the scrollable option in ContextMenu. * * @default false */ enableScrolling?: boolean; }