@syncfusion/ej2-ribbon 30.2.4 → 31.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-ribbon.umd.min.js +1 -1
- package/dist/global/ej2-ribbon.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/index.d.ts +1 -0
- package/dist/ts/index.ts +3 -0
- package/dist/ts/ribbon/base/constant.d.ts +201 -0
- package/dist/ts/ribbon/base/constant.ts +204 -0
- package/dist/ts/ribbon/base/index.d.ts +8 -0
- package/dist/ts/ribbon/base/index.ts +8 -0
- package/dist/ts/ribbon/base/interface.d.ts +398 -0
- package/dist/ts/ribbon/base/interface.ts +424 -0
- package/dist/ts/ribbon/base/ribbon-model.d.ts +195 -0
- package/dist/ts/ribbon/base/ribbon.d.ts +608 -0
- package/dist/ts/ribbon/base/ribbon.ts +4896 -0
- package/dist/ts/ribbon/base/utils.d.ts +139 -0
- package/dist/ts/ribbon/base/utils.ts +341 -0
- package/dist/ts/ribbon/index.d.ts +7 -0
- package/dist/ts/ribbon/index.ts +7 -0
- package/dist/ts/ribbon/items/index.d.ts +8 -0
- package/dist/ts/ribbon/items/index.ts +8 -0
- package/dist/ts/ribbon/items/ribbon-button.d.ts +64 -0
- package/dist/ts/ribbon/items/ribbon-button.ts +160 -0
- package/dist/ts/ribbon/items/ribbon-checkbox.d.ts +55 -0
- package/dist/ts/ribbon/items/ribbon-checkbox.ts +130 -0
- package/dist/ts/ribbon/items/ribbon-colorpicker.d.ts +72 -0
- package/dist/ts/ribbon/items/ribbon-colorpicker.ts +228 -0
- package/dist/ts/ribbon/items/ribbon-combobox.d.ts +77 -0
- package/dist/ts/ribbon/items/ribbon-combobox.ts +201 -0
- package/dist/ts/ribbon/items/ribbon-dropdown.d.ts +128 -0
- package/dist/ts/ribbon/items/ribbon-dropdown.ts +400 -0
- package/dist/ts/ribbon/items/ribbon-gallery.d.ts +97 -0
- package/dist/ts/ribbon/items/ribbon-gallery.ts +773 -0
- package/dist/ts/ribbon/items/ribbon-groupbutton.d.ts +73 -0
- package/dist/ts/ribbon/items/ribbon-groupbutton.ts +531 -0
- package/dist/ts/ribbon/items/ribbon-splitbutton.d.ts +85 -0
- package/dist/ts/ribbon/items/ribbon-splitbutton.ts +257 -0
- package/dist/ts/ribbon/models/index.d.ts +42 -0
- package/dist/ts/ribbon/models/index.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-back-button-model.d.ts +29 -0
- package/dist/ts/ribbon/models/ribbon-back-button.d.ts +24 -0
- package/dist/ts/ribbon/models/ribbon-back-button.ts +31 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings-model.d.ts +83 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.d.ts +81 -0
- package/dist/ts/ribbon/models/ribbon-back-stage-settings.ts +109 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item-model.d.ts +69 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item.d.ts +80 -0
- package/dist/ts/ribbon/models/ribbon-backstage-item.ts +102 -0
- package/dist/ts/ribbon/models/ribbon-button-settings-model.d.ts +64 -0
- package/dist/ts/ribbon/models/ribbon-button-settings.d.ts +63 -0
- package/dist/ts/ribbon/models/ribbon-button-settings.ts +80 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings-model.d.ts +57 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.d.ts +58 -0
- package/dist/ts/ribbon/models/ribbon-checkbox-settings.ts +74 -0
- package/dist/ts/ribbon/models/ribbon-collection-model.d.ts +30 -0
- package/dist/ts/ribbon/models/ribbon-collection.d.ts +33 -0
- package/dist/ts/ribbon/models/ribbon-collection.ts +45 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings-model.d.ts +137 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.d.ts +129 -0
- package/dist/ts/ribbon/models/ribbon-colorpicker-settings.ts +165 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings-model.d.ts +275 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings.d.ts +257 -0
- package/dist/ts/ribbon/models/ribbon-combobox-settings.ts +313 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +30 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.d.ts +33 -0
- package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings-model.d.ts +114 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.d.ts +107 -0
- package/dist/ts/ribbon/models/ribbon-dropdown-settings.ts +139 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings-model.d.ts +123 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.d.ts +173 -0
- package/dist/ts/ribbon/models/ribbon-file-menu-settings.ts +220 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group-model.d.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group.d.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-gallery-group.ts +50 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item-model.d.ts +43 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item.d.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-gallery-item.ts +47 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings-model.d.ts +108 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings.d.ts +95 -0
- package/dist/ts/ribbon/models/ribbon-gallery-settings.ts +123 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item-model.d.ts +64 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item.d.ts +65 -0
- package/dist/ts/ribbon/models/ribbon-group-button-item.ts +85 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings-model.d.ts +32 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings.d.ts +29 -0
- package/dist/ts/ribbon/models/ribbon-group-button-settings.ts +38 -0
- package/dist/ts/ribbon/models/ribbon-group-model.d.ts +112 -0
- package/dist/ts/ribbon/models/ribbon-group.d.ts +105 -0
- package/dist/ts/ribbon/models/ribbon-group.ts +138 -0
- package/dist/ts/ribbon/models/ribbon-item-model.d.ts +144 -0
- package/dist/ts/ribbon/models/ribbon-item.d.ts +141 -0
- package/dist/ts/ribbon/models/ribbon-item.ts +190 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings-model.d.ts +114 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.d.ts +107 -0
- package/dist/ts/ribbon/models/ribbon-splitbutton-settings.ts +140 -0
- package/dist/ts/ribbon/models/ribbon-tab-model.d.ts +44 -0
- package/dist/ts/ribbon/models/ribbon-tab.d.ts +45 -0
- package/dist/ts/ribbon/models/ribbon-tab.ts +61 -0
- package/dist/ts/ribbon/models/ribbon-tooltip-model.d.ts +43 -0
- package/dist/ts/ribbon/models/ribbon-tooltip.d.ts +36 -0
- package/dist/ts/ribbon/models/ribbon-tooltip.ts +47 -0
- package/dist/ts/ribbon/modules/index.d.ts +4 -0
- package/dist/ts/ribbon/modules/index.ts +5 -0
- package/dist/ts/ribbon/modules/ribbon-backstage.d.ts +117 -0
- package/dist/ts/ribbon/modules/ribbon-backstage.ts +620 -0
- package/dist/ts/ribbon/modules/ribbon-contextualtab.d.ts +27 -0
- package/dist/ts/ribbon/modules/ribbon-contextualtab.ts +93 -0
- package/dist/ts/ribbon/modules/ribbon-filemenu.d.ts +96 -0
- package/dist/ts/ribbon/modules/ribbon-filemenu.ts +353 -0
- package/dist/ts/ribbon/modules/ribbon-keytip.d.ts +56 -0
- package/dist/ts/ribbon/modules/ribbon-keytip.ts +580 -0
- package/package.json +55 -19
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { ChildProperty, Event, EmitType, Property, Complex } from '@syncfusion/ej2-base';
|
|
2
|
+
import { BeforeOpenEventArgs, ChangeEventArgs, FieldSettings, FieldSettingsModel, FilteringEventArgs, FilterType, PopupEventArgs } from '@syncfusion/ej2-dropdowns';
|
|
3
|
+
import { SelectEventArgs, SortOrder } from '@syncfusion/ej2-lists';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Defines the ribbon combobox item.
|
|
7
|
+
*/
|
|
8
|
+
export class RibbonComboBoxSettings extends ChildProperty<RibbonComboBoxSettings>{
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies whether to show the filter bar (search box) of the combobox.
|
|
12
|
+
* The filter action retrieves matched items through the filtering event based on the characters typed in the search TextBox.
|
|
13
|
+
* If no match is found, the value of the noRecordsTemplate property will be displayed.
|
|
14
|
+
*
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
@Property(false)
|
|
18
|
+
public allowFiltering: boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Specifies whether to suggest a first matched item in input when searching.
|
|
22
|
+
* No action happens when no matches found.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
@Property(true)
|
|
27
|
+
public autofill: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines the CSS class to customize the appearance of the combobox.
|
|
31
|
+
*
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
@Property('')
|
|
35
|
+
public cssClass: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the label text for the overflow item.
|
|
39
|
+
*
|
|
40
|
+
* @default ''
|
|
41
|
+
*/
|
|
42
|
+
@Property('')
|
|
43
|
+
public label: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Defines the list of items to shown in the combobox.
|
|
47
|
+
*
|
|
48
|
+
* @default []
|
|
49
|
+
*/
|
|
50
|
+
@Property([])
|
|
51
|
+
public dataSource: { [key: string]: Object }[] | string[] | number[] | boolean[];
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the mapping for the columns of the data table bind to the combobox.
|
|
55
|
+
* * text - Maps the text column from data table for each list item.
|
|
56
|
+
* * value - Maps the value column from data table for each list item.
|
|
57
|
+
* * iconCss - Maps the icon class column from data table for each list item.
|
|
58
|
+
* * groupBy - Group the list items with it's related items by mapping groupBy field.
|
|
59
|
+
*
|
|
60
|
+
* @default {text: null, value: null, iconCss: null, groupBy: null}
|
|
61
|
+
*/
|
|
62
|
+
@Complex<FieldSettingsModel>({ text: null, value: null, iconCss: null, groupBy: null }, FieldSettings)
|
|
63
|
+
public fields: FieldSettingsModel;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Specifies filter type to be considered on search action.
|
|
67
|
+
* The `FilterType` and its supported data types are
|
|
68
|
+
*
|
|
69
|
+
* <table>
|
|
70
|
+
* <tr>
|
|
71
|
+
* <td colSpan=1 rowSpan=1>
|
|
72
|
+
* FilterType<br/></td><td colSpan=1 rowSpan=1>
|
|
73
|
+
* Description<br/></td><td colSpan=1 rowSpan=1>
|
|
74
|
+
* Supported Types<br/></td></tr>
|
|
75
|
+
* <tr>
|
|
76
|
+
* <td colSpan=1 rowSpan=1>
|
|
77
|
+
* StartsWith<br/></td><td colSpan=1 rowSpan=1>
|
|
78
|
+
* Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
|
|
79
|
+
* String<br/></td></tr>
|
|
80
|
+
* <tr>
|
|
81
|
+
* <td colSpan=1 rowSpan=1>
|
|
82
|
+
* EndsWith<br/></td><td colSpan=1 rowSpan=1>
|
|
83
|
+
* Checks whether a value ends with specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
|
|
84
|
+
* <br/>String<br/></td></tr>
|
|
85
|
+
* <tr>
|
|
86
|
+
* <td colSpan=1 rowSpan=1>
|
|
87
|
+
* Contains<br/></td><td colSpan=1 rowSpan=1>
|
|
88
|
+
* Checks whether a value contains with specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
|
|
89
|
+
* <br/>String<br/></td></tr>
|
|
90
|
+
* </table>
|
|
91
|
+
*
|
|
92
|
+
* @default Contains
|
|
93
|
+
*/
|
|
94
|
+
@Property('Contains')
|
|
95
|
+
public filterType: FilterType;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Specifies the template content for the footer container of the popup list.
|
|
99
|
+
*
|
|
100
|
+
* @default null
|
|
101
|
+
* @angularType string | object
|
|
102
|
+
* @reactType string | function | JSX.Element
|
|
103
|
+
* @vueType string | function
|
|
104
|
+
* @aspType string
|
|
105
|
+
*/
|
|
106
|
+
@Property(null)
|
|
107
|
+
public footerTemplate: string | Function;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Specifies the template content for the group headers present in the popup list.
|
|
111
|
+
*
|
|
112
|
+
* @default null
|
|
113
|
+
* @angularType string | object
|
|
114
|
+
* @reactType string | function | JSX.Element
|
|
115
|
+
* @vueType string | function
|
|
116
|
+
* @aspType string
|
|
117
|
+
*/
|
|
118
|
+
@Property(null)
|
|
119
|
+
public groupTemplate: string | Function;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Specifies the template content for the header container of the popup list.
|
|
123
|
+
*
|
|
124
|
+
* @default null
|
|
125
|
+
* @angularType string | object
|
|
126
|
+
* @reactType string | function | JSX.Element
|
|
127
|
+
* @vueType string | function
|
|
128
|
+
* @aspType string
|
|
129
|
+
*/
|
|
130
|
+
@Property(null)
|
|
131
|
+
public headerTemplate: string | Function;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Specifies the index of the selected item in the combobox.
|
|
135
|
+
*
|
|
136
|
+
* @default null
|
|
137
|
+
*/
|
|
138
|
+
@Property(null)
|
|
139
|
+
public index: number;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Specifies the template content for each list item present in the popup.
|
|
143
|
+
*
|
|
144
|
+
* @default null
|
|
145
|
+
* @angularType string | object
|
|
146
|
+
* @reactType string | function | JSX.Element
|
|
147
|
+
* @vueType string | function
|
|
148
|
+
* @aspType string
|
|
149
|
+
*/
|
|
150
|
+
@Property(null)
|
|
151
|
+
public itemTemplate: string | Function;
|
|
152
|
+
/**
|
|
153
|
+
* Specifies the template content for the popup list of combobox when no data is available.
|
|
154
|
+
*
|
|
155
|
+
* @default 'No records found'
|
|
156
|
+
* @angularType string | object
|
|
157
|
+
* @reactType string | function | JSX.Element
|
|
158
|
+
* @vueType string | function
|
|
159
|
+
* @aspType string
|
|
160
|
+
*/
|
|
161
|
+
@Property('No records found')
|
|
162
|
+
public noRecordsTemplate: string | Function;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Specifies a short hint that describes the expected value of the combobox.
|
|
166
|
+
*
|
|
167
|
+
* @default null
|
|
168
|
+
*/
|
|
169
|
+
@Property(null)
|
|
170
|
+
public placeholder: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Specifies the height of the popup list.
|
|
174
|
+
*
|
|
175
|
+
* @default '300px'
|
|
176
|
+
* @aspType string
|
|
177
|
+
*/
|
|
178
|
+
@Property('300px')
|
|
179
|
+
public popupHeight: string | number;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Specifies the width of the popup list.
|
|
183
|
+
* By default, the popup width sets based on the width of the combobox.
|
|
184
|
+
*
|
|
185
|
+
* @default '100%'
|
|
186
|
+
* @aspType string
|
|
187
|
+
*/
|
|
188
|
+
@Property('100%')
|
|
189
|
+
public popupWidth: string | number;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Specifies whether to show or hide the clear button.
|
|
193
|
+
* When the clear button is clicked, `value`, `text`, and `index` properties are reset to null.
|
|
194
|
+
*
|
|
195
|
+
* @default true
|
|
196
|
+
*/
|
|
197
|
+
@Property(true)
|
|
198
|
+
public showClearButton: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Specifies the order in which the data source needs to be sorted. The available type of sort orders are
|
|
201
|
+
* * `None` - The data source is not sorted.
|
|
202
|
+
* * `Ascending` - The data source is sorted in ascending order.
|
|
203
|
+
* * `Descending` - The data source is sorted in descending order.
|
|
204
|
+
*
|
|
205
|
+
* @default null
|
|
206
|
+
* @asptype object
|
|
207
|
+
* @aspjsonconverterignore
|
|
208
|
+
*/
|
|
209
|
+
@Property<SortOrder>('None')
|
|
210
|
+
public sortOrder: SortOrder;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Defines the display text of the selected item in the combobox.
|
|
214
|
+
*
|
|
215
|
+
* @default null
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
218
|
+
@Property(null)
|
|
219
|
+
public text: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Defines the value of the selected item in the combobox.
|
|
223
|
+
*
|
|
224
|
+
* @default null
|
|
225
|
+
* @isGenericType true
|
|
226
|
+
*/
|
|
227
|
+
@Property(null)
|
|
228
|
+
public value: number | string | boolean;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Specifies the width of the combobox.
|
|
232
|
+
* By default, the combobox width sets based on the width of its parent container.
|
|
233
|
+
*
|
|
234
|
+
* @default '150px'
|
|
235
|
+
* @aspType string
|
|
236
|
+
*/
|
|
237
|
+
@Property('150px')
|
|
238
|
+
public width: string | number;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Specifies additional HTML attributes to be applied to the combobox.
|
|
242
|
+
*
|
|
243
|
+
* @default {}
|
|
244
|
+
*/
|
|
245
|
+
@Property({})
|
|
246
|
+
public htmlAttributes: { [key: string]: string };
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Event triggers before opening the popup.
|
|
250
|
+
*
|
|
251
|
+
* @event beforeOpen
|
|
252
|
+
*/
|
|
253
|
+
@Event()
|
|
254
|
+
public beforeOpen: EmitType<BeforeOpenEventArgs>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Event triggers when an item in a popup is selected or when the model value is changed by user.
|
|
258
|
+
*
|
|
259
|
+
* @event change
|
|
260
|
+
*/
|
|
261
|
+
@Event()
|
|
262
|
+
public change: EmitType<ChangeEventArgs>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Event triggers when the popup is closed.
|
|
266
|
+
*
|
|
267
|
+
* @event close
|
|
268
|
+
*/
|
|
269
|
+
@Event()
|
|
270
|
+
public close: EmitType<PopupEventArgs>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Event triggers once the combobox is created.
|
|
274
|
+
*
|
|
275
|
+
* @event created
|
|
276
|
+
*/
|
|
277
|
+
@Event()
|
|
278
|
+
public created: EmitType<Event>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Event triggers on typing a character in the combobox.
|
|
282
|
+
*
|
|
283
|
+
* @event filtering
|
|
284
|
+
*/
|
|
285
|
+
@Event()
|
|
286
|
+
public filtering: EmitType<FilteringEventArgs>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Event triggers when the popup is opened
|
|
290
|
+
*
|
|
291
|
+
* @event open
|
|
292
|
+
*/
|
|
293
|
+
@Event()
|
|
294
|
+
public open: EmitType<PopupEventArgs>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Event triggers when an item in the popup is selected.
|
|
298
|
+
*
|
|
299
|
+
* @event select
|
|
300
|
+
*/
|
|
301
|
+
@Event()
|
|
302
|
+
public select: EmitType<SelectEventArgs>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* @param {Object} prop - Gets the property of combobox.
|
|
306
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
307
|
+
* @returns {void}
|
|
308
|
+
* @private
|
|
309
|
+
*/
|
|
310
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
311
|
+
super.setProperties(prop, muteOnChange);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';import { RibbonTab } from './ribbon-tab';import { RibbonTabModel } from './ribbon-tab-model';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonContextualTabSettings
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonContextualTabSettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Specifies whether the contextual tab is visible.
|
|
10
|
+
*
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether the contextual tab is selected.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
isSelected?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines the tab groups to be rendered in ribbon.
|
|
24
|
+
*
|
|
25
|
+
* @default []
|
|
26
|
+
* @aspType List<RibbonTab>
|
|
27
|
+
*/
|
|
28
|
+
tabs?: RibbonTabModel[];
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
import { RibbonTabModel } from './ribbon-tab-model';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ribbon contextual tab.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RibbonContextualTabSettings extends ChildProperty<RibbonContextualTabSettings> {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies whether the contextual tab is visible.
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
visible: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies whether the contextual tab is selected.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the tab groups to be rendered in ribbon.
|
|
21
|
+
*
|
|
22
|
+
* @default []
|
|
23
|
+
* @aspType List<RibbonTab>
|
|
24
|
+
*/
|
|
25
|
+
tabs: RibbonTabModel[];
|
|
26
|
+
/**
|
|
27
|
+
* @param {Object} prop - Gets the property of contextual tab.
|
|
28
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
29
|
+
* @returns {void}
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
|
|
2
|
+
import { RibbonTab } from './ribbon-tab';
|
|
3
|
+
import { RibbonTabModel } from './ribbon-tab-model';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Defines the ribbon contextual tab.
|
|
7
|
+
*/
|
|
8
|
+
export class RibbonContextualTabSettings extends ChildProperty<RibbonContextualTabSettings> {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies whether the contextual tab is visible.
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
@Property(false)
|
|
16
|
+
public visible: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies whether the contextual tab is selected.
|
|
20
|
+
*
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
@Property(false)
|
|
24
|
+
public isSelected: boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Defines the tab groups to be rendered in ribbon.
|
|
28
|
+
*
|
|
29
|
+
* @default []
|
|
30
|
+
* @aspType List<RibbonTab>
|
|
31
|
+
*/
|
|
32
|
+
@Collection<RibbonTabModel>([], RibbonTab)
|
|
33
|
+
public tabs: RibbonTabModel[];
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @param {Object} prop - Gets the property of contextual tab.
|
|
37
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
38
|
+
* @returns {void}
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
public setProperties(prop: Object, muteOnChange: boolean): void {
|
|
42
|
+
super.setProperties(prop, muteOnChange);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ChildProperty, Collection, Event, EmitType, Property } from '@syncfusion/ej2-base';import { ItemModel, Item, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs } from '@syncfusion/ej2-splitbuttons';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class RibbonDropDownSettings
|
|
5
|
+
*/
|
|
6
|
+
export interface RibbonDropDownSettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the event to close the DropDownButton popup.
|
|
10
|
+
*
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
closeActionEvents?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the content of the DropDownButton.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
content?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines one or more CSS classes to customize the appearance of DropDownButton.
|
|
24
|
+
*
|
|
25
|
+
* @default ''
|
|
26
|
+
*/
|
|
27
|
+
cssClass?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Defines the CSS class for the icons to be shown in the DropDownButton.
|
|
31
|
+
*
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
iconCss?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Defines the list of items for the DropDownButton popup.
|
|
38
|
+
*
|
|
39
|
+
* @default []
|
|
40
|
+
*/
|
|
41
|
+
items?: ItemModel[];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the selector for the element to be shown in the DropDownButton popup.
|
|
45
|
+
*
|
|
46
|
+
* @default ''
|
|
47
|
+
* @aspType string
|
|
48
|
+
*/
|
|
49
|
+
target?: string | HTMLElement;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Specifies whether to create popup element on open.
|
|
53
|
+
*
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
createPopupOnClick?: boolean;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Specifies additional HTML attributes to be applied to the DropDownButton.
|
|
60
|
+
*
|
|
61
|
+
* @default {}
|
|
62
|
+
*/
|
|
63
|
+
htmlAttributes?: { [key: string]: string };
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Triggers before closing the DropDownButton popup.
|
|
67
|
+
*
|
|
68
|
+
* @event beforeClose
|
|
69
|
+
*/
|
|
70
|
+
beforeClose?: EmitType<BeforeOpenCloseMenuEventArgs>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Triggers while rendering each Popup item of DropDownButton.
|
|
74
|
+
*
|
|
75
|
+
* @event beforeItemRender
|
|
76
|
+
*/
|
|
77
|
+
beforeItemRender?: EmitType<MenuEventArgs>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Triggers before opening the DropDownButton popup.
|
|
81
|
+
*
|
|
82
|
+
* @event beforeOpen
|
|
83
|
+
*/
|
|
84
|
+
beforeOpen?: EmitType<BeforeOpenCloseMenuEventArgs>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Triggers while closing the DropDownButton popup.
|
|
88
|
+
*
|
|
89
|
+
* @event close
|
|
90
|
+
*/
|
|
91
|
+
close?: EmitType<OpenCloseMenuEventArgs>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Event triggers once the DropDownButton is created.
|
|
95
|
+
*
|
|
96
|
+
* @event created
|
|
97
|
+
*/
|
|
98
|
+
created?: EmitType<Event>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Triggers while opening the DropDownButton popup.
|
|
102
|
+
*
|
|
103
|
+
* @event open
|
|
104
|
+
*/
|
|
105
|
+
open?: EmitType<OpenCloseMenuEventArgs>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Triggers while selecting an action item in DropDownButton popup.
|
|
109
|
+
*
|
|
110
|
+
* @event select
|
|
111
|
+
*/
|
|
112
|
+
select?: EmitType<MenuEventArgs>;
|
|
113
|
+
|
|
114
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ChildProperty, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
+
import { ItemModel, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs } from '@syncfusion/ej2-splitbuttons';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the ribbon DropDownButton item.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RibbonDropDownSettings extends ChildProperty<RibbonDropDownSettings> {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies the event to close the DropDownButton popup.
|
|
9
|
+
*
|
|
10
|
+
* @default ''
|
|
11
|
+
*/
|
|
12
|
+
closeActionEvents: string;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the content of the DropDownButton.
|
|
15
|
+
*
|
|
16
|
+
* @default ''
|
|
17
|
+
*/
|
|
18
|
+
content: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines one or more CSS classes to customize the appearance of DropDownButton.
|
|
21
|
+
*
|
|
22
|
+
* @default ''
|
|
23
|
+
*/
|
|
24
|
+
cssClass: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the CSS class for the icons to be shown in the DropDownButton.
|
|
27
|
+
*
|
|
28
|
+
* @default ''
|
|
29
|
+
*/
|
|
30
|
+
iconCss: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the list of items for the DropDownButton popup.
|
|
33
|
+
*
|
|
34
|
+
* @default []
|
|
35
|
+
*/
|
|
36
|
+
items: ItemModel[];
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the selector for the element to be shown in the DropDownButton popup.
|
|
39
|
+
*
|
|
40
|
+
* @default ''
|
|
41
|
+
* @aspType string
|
|
42
|
+
*/
|
|
43
|
+
target: string | HTMLElement;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies whether to create popup element on open.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
createPopupOnClick: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies additional HTML attributes to be applied to the DropDownButton.
|
|
52
|
+
*
|
|
53
|
+
* @default {}
|
|
54
|
+
*/
|
|
55
|
+
htmlAttributes: {
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Triggers before closing the DropDownButton popup.
|
|
60
|
+
*
|
|
61
|
+
* @event beforeClose
|
|
62
|
+
*/
|
|
63
|
+
beforeClose: EmitType<BeforeOpenCloseMenuEventArgs>;
|
|
64
|
+
/**
|
|
65
|
+
* Triggers while rendering each Popup item of DropDownButton.
|
|
66
|
+
*
|
|
67
|
+
* @event beforeItemRender
|
|
68
|
+
*/
|
|
69
|
+
beforeItemRender: EmitType<MenuEventArgs>;
|
|
70
|
+
/**
|
|
71
|
+
* Triggers before opening the DropDownButton popup.
|
|
72
|
+
*
|
|
73
|
+
* @event beforeOpen
|
|
74
|
+
*/
|
|
75
|
+
beforeOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
|
|
76
|
+
/**
|
|
77
|
+
* Triggers while closing the DropDownButton popup.
|
|
78
|
+
*
|
|
79
|
+
* @event close
|
|
80
|
+
*/
|
|
81
|
+
close: EmitType<OpenCloseMenuEventArgs>;
|
|
82
|
+
/**
|
|
83
|
+
* Event triggers once the DropDownButton is created.
|
|
84
|
+
*
|
|
85
|
+
* @event created
|
|
86
|
+
*/
|
|
87
|
+
created: EmitType<Event>;
|
|
88
|
+
/**
|
|
89
|
+
* Triggers while opening the DropDownButton popup.
|
|
90
|
+
*
|
|
91
|
+
* @event open
|
|
92
|
+
*/
|
|
93
|
+
open: EmitType<OpenCloseMenuEventArgs>;
|
|
94
|
+
/**
|
|
95
|
+
* Triggers while selecting an action item in DropDownButton popup.
|
|
96
|
+
*
|
|
97
|
+
* @event select
|
|
98
|
+
*/
|
|
99
|
+
select: EmitType<MenuEventArgs>;
|
|
100
|
+
/**
|
|
101
|
+
* @param {Object} prop - Gets the property of DropDown.
|
|
102
|
+
* @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
|
|
103
|
+
* @returns {void}
|
|
104
|
+
* @private
|
|
105
|
+
*/
|
|
106
|
+
setProperties(prop: Object, muteOnChange: boolean): void;
|
|
107
|
+
}
|