-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathribbon-model.d.ts
185 lines (157 loc) · 4.54 KB
/
ribbon-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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, Event, EmitType, ChildProperty } from '@syncfusion/ej2-base';import { getComponent, closest, EventHandler, getUniqueID, isNullOrUndefined } from '@syncfusion/ej2-base';import { Collection, Complex } from '@syncfusion/ej2-base';import { Tab, Toolbar, ItemModel, SelectingEventArgs, MenuItemModel, ClickEventArgs, TabItemModel } from '@syncfusion/ej2-navigations';import { Menu, MenuEventArgs, BeforeOpenCloseMenuEventArgs, Item, MenuItem } from '@syncfusion/ej2-navigations';import { SelectEventArgs as TabSelectEventArgs } from '@syncfusion/ej2-navigations';import { SelectEventArgs } from '@syncfusion/ej2-dropdowns';import { Spreadsheet } from '../spreadsheet/base';
import {ExpandCollapseEventArgs} from "./ribbon";
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class RibbonHeader
*/
export interface RibbonHeaderModel {
/**
* Specifies the display text of the Ribbon tab header.
*
* @default ''
*/
text?: string;
/**
* Specifies the icon class that is used to render an icon in the Ribbon tab header.
*
* @default ''
*/
iconCss?: string;
/**
* Options for positioning the icon in the Ribbon tab header. This property depends on `iconCss` property.
* The possible values are:
* - Left: Places the icon to the `left` of the item.
* - Top: Places the icon on the `top` of the item.
* - Right: Places the icon to the `right` end of the item.
* - Bottom: Places the icon at the `bottom` of the item.
*
* @default 'left'
*/
iconPosition?: string;
}
/**
* Interface for a class RibbonItem
*/
export interface RibbonItemModel {
/**
* The object used for configuring the Tab item header properties.
*
* @default {}
*/
header?: RibbonHeaderModel;
/**
* Specifies the content of Tab item, that is displayed when concern item header is selected.
*
* @default ''
*/
content?: ItemModel[];
/**
* Sets the CSS classes to the Tab item to customize its styles.
*
* @default ''
*/
cssClass?: string;
/**
* Sets true to disable user interactions of the Tab item.
*
* @default false
*/
disabled?: boolean;
}
/**
* Interface for a class Ribbon
*/
export interface RibbonModel extends ComponentModel{
/**
* Defines class/multiple classes separated by a space in the Spreadsheet element.
*
* @default ""
*/
cssClass?: string;
/**
* Used the specify the ribbon menu type as `Menu` or `Sidebar`.
*
* @default true
*/
menuType?: boolean;
/**
* An array of object that is used to configure the Ribbon menu.
*
* @default []
*/
menuItems?: MenuItemModel[];
/**
* Specifies the index for activating the current Ribbon tab.
*
* @default 0
*/
selectedTab?: number;
/**
* An array of object that is used to configure the Ribbon tab.
*
* @default []
*/
items?: RibbonItemModel[];
/**
* Specifies the spreadsheet instance.
*
* @default null
* @hidden
*/
spreadInstance?: Spreadsheet;
/**
* Triggers while selecting the tab item.
*
* @event anEvent
*/
selecting?: EmitType<SelectingEventArgs>;
/**
* Triggers while selecting the file menu item.
*
* @event anEvent
*/
fileMenuItemSelect?: EmitType<MenuEventArgs>;
/**
* Triggers while rendering each file menu item.
*
* @event anEvent
*/
beforeFileMenuItemRender?: EmitType<MenuEventArgs>;
/**
* Triggers before opening the file menu.
*
* @event anEvent
*/
beforeOpen?: EmitType<BeforeOpenCloseMenuEventArgs>;
/**
* Triggers before closing the file menu.
*
* @event anEvent
*/
beforeClose?: EmitType<BeforeOpenCloseMenuEventArgs>;
/**
* Triggers format dropdown items gets selected.
*
* @event anEvent
* @hidden
*/
selectFormat?: EmitType<SelectEventArgs>;
/**
* Triggers while clicking the ribbon content elements.
*
* @event anEvent
*/
clicked?: EmitType<ClickEventArgs>;
/**
* Triggers once the component rendering is completed.
*
* @event anEvent
*/
created?: EmitType<Event>;
/**
* Triggers once the component rendering is completed.
*
* @event anEvent
*/
expandCollapse?: EmitType<ExpandCollapseEventArgs>;
}