-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathmenu-model.d.ts
70 lines (60 loc) · 1.97 KB
/
menu-model.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { MenuBase, FieldSettings } from '../common/menu-base';import { MenuItemModel, FieldSettingsModel } from '../common/menu-base-model';
import {Orientation} from "./menu";
import {MenuBaseModel} from "../common/menu-base-model";
/**
* Interface for a class Menu
*/
export interface MenuModel extends MenuBaseModel{
/**
* Specified the orientation of Menu whether it can be horizontal or vertical.
*
* @default 'Horizontal'
*/
orientation?: Orientation;
/**
* Specifies target element to open/close Menu while click in Hamburger mode.
*
* @default ''
*/
target?: string;
/**
* Specifies the template for Menu item.
*
* @default null
* @aspType string
*/
template?: string | Function;
/**
* Specifies whether to enable / disable the scrollable option in Menu.
*
* @default false
*/
enableScrolling?: boolean;
/**
* Specifies whether to enable / disable the hamburger mode in Menu.
*
* @default false
*/
hamburgerMode?: boolean;
/**
* Specifies the title text for hamburger mode in Menu.
*
* @default 'Menu'
*/
title?: string;
/**
* Specifies whether to enable the rendering of untrusted HTML values in the Menu component.
* If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
*
* @default true
*/
enableHtmlSanitizer?: boolean;
/**
* Specifies mapping fields from the dataSource.
*
* @default { itemId: "id", text: "text", parentId: "parentId", iconCss: "iconCss", url: "url", separator: "separator",
* children: "items" }
*/
// eslint:disable-next-line
fields?: FieldSettingsModel;
}