@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.
Files changed (112) hide show
  1. package/dist/ej2-ribbon.umd.min.js +1 -1
  2. package/dist/global/ej2-ribbon.min.js +1 -1
  3. package/dist/global/index.d.ts +1 -1
  4. package/dist/ts/index.d.ts +1 -0
  5. package/dist/ts/index.ts +3 -0
  6. package/dist/ts/ribbon/base/constant.d.ts +201 -0
  7. package/dist/ts/ribbon/base/constant.ts +204 -0
  8. package/dist/ts/ribbon/base/index.d.ts +8 -0
  9. package/dist/ts/ribbon/base/index.ts +8 -0
  10. package/dist/ts/ribbon/base/interface.d.ts +398 -0
  11. package/dist/ts/ribbon/base/interface.ts +424 -0
  12. package/dist/ts/ribbon/base/ribbon-model.d.ts +195 -0
  13. package/dist/ts/ribbon/base/ribbon.d.ts +608 -0
  14. package/dist/ts/ribbon/base/ribbon.ts +4896 -0
  15. package/dist/ts/ribbon/base/utils.d.ts +139 -0
  16. package/dist/ts/ribbon/base/utils.ts +341 -0
  17. package/dist/ts/ribbon/index.d.ts +7 -0
  18. package/dist/ts/ribbon/index.ts +7 -0
  19. package/dist/ts/ribbon/items/index.d.ts +8 -0
  20. package/dist/ts/ribbon/items/index.ts +8 -0
  21. package/dist/ts/ribbon/items/ribbon-button.d.ts +64 -0
  22. package/dist/ts/ribbon/items/ribbon-button.ts +160 -0
  23. package/dist/ts/ribbon/items/ribbon-checkbox.d.ts +55 -0
  24. package/dist/ts/ribbon/items/ribbon-checkbox.ts +130 -0
  25. package/dist/ts/ribbon/items/ribbon-colorpicker.d.ts +72 -0
  26. package/dist/ts/ribbon/items/ribbon-colorpicker.ts +228 -0
  27. package/dist/ts/ribbon/items/ribbon-combobox.d.ts +77 -0
  28. package/dist/ts/ribbon/items/ribbon-combobox.ts +201 -0
  29. package/dist/ts/ribbon/items/ribbon-dropdown.d.ts +128 -0
  30. package/dist/ts/ribbon/items/ribbon-dropdown.ts +400 -0
  31. package/dist/ts/ribbon/items/ribbon-gallery.d.ts +97 -0
  32. package/dist/ts/ribbon/items/ribbon-gallery.ts +773 -0
  33. package/dist/ts/ribbon/items/ribbon-groupbutton.d.ts +73 -0
  34. package/dist/ts/ribbon/items/ribbon-groupbutton.ts +531 -0
  35. package/dist/ts/ribbon/items/ribbon-splitbutton.d.ts +85 -0
  36. package/dist/ts/ribbon/items/ribbon-splitbutton.ts +257 -0
  37. package/dist/ts/ribbon/models/index.d.ts +42 -0
  38. package/dist/ts/ribbon/models/index.ts +44 -0
  39. package/dist/ts/ribbon/models/ribbon-back-button-model.d.ts +29 -0
  40. package/dist/ts/ribbon/models/ribbon-back-button.d.ts +24 -0
  41. package/dist/ts/ribbon/models/ribbon-back-button.ts +31 -0
  42. package/dist/ts/ribbon/models/ribbon-back-stage-settings-model.d.ts +83 -0
  43. package/dist/ts/ribbon/models/ribbon-back-stage-settings.d.ts +81 -0
  44. package/dist/ts/ribbon/models/ribbon-back-stage-settings.ts +109 -0
  45. package/dist/ts/ribbon/models/ribbon-backstage-item-model.d.ts +69 -0
  46. package/dist/ts/ribbon/models/ribbon-backstage-item.d.ts +80 -0
  47. package/dist/ts/ribbon/models/ribbon-backstage-item.ts +102 -0
  48. package/dist/ts/ribbon/models/ribbon-button-settings-model.d.ts +64 -0
  49. package/dist/ts/ribbon/models/ribbon-button-settings.d.ts +63 -0
  50. package/dist/ts/ribbon/models/ribbon-button-settings.ts +80 -0
  51. package/dist/ts/ribbon/models/ribbon-checkbox-settings-model.d.ts +57 -0
  52. package/dist/ts/ribbon/models/ribbon-checkbox-settings.d.ts +58 -0
  53. package/dist/ts/ribbon/models/ribbon-checkbox-settings.ts +74 -0
  54. package/dist/ts/ribbon/models/ribbon-collection-model.d.ts +30 -0
  55. package/dist/ts/ribbon/models/ribbon-collection.d.ts +33 -0
  56. package/dist/ts/ribbon/models/ribbon-collection.ts +45 -0
  57. package/dist/ts/ribbon/models/ribbon-colorpicker-settings-model.d.ts +137 -0
  58. package/dist/ts/ribbon/models/ribbon-colorpicker-settings.d.ts +129 -0
  59. package/dist/ts/ribbon/models/ribbon-colorpicker-settings.ts +165 -0
  60. package/dist/ts/ribbon/models/ribbon-combobox-settings-model.d.ts +275 -0
  61. package/dist/ts/ribbon/models/ribbon-combobox-settings.d.ts +257 -0
  62. package/dist/ts/ribbon/models/ribbon-combobox-settings.ts +313 -0
  63. package/dist/ts/ribbon/models/ribbon-contextual-tab-settings-model.d.ts +30 -0
  64. package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.d.ts +33 -0
  65. package/dist/ts/ribbon/models/ribbon-contextual-tab-settings.ts +44 -0
  66. package/dist/ts/ribbon/models/ribbon-dropdown-settings-model.d.ts +114 -0
  67. package/dist/ts/ribbon/models/ribbon-dropdown-settings.d.ts +107 -0
  68. package/dist/ts/ribbon/models/ribbon-dropdown-settings.ts +139 -0
  69. package/dist/ts/ribbon/models/ribbon-file-menu-settings-model.d.ts +123 -0
  70. package/dist/ts/ribbon/models/ribbon-file-menu-settings.d.ts +173 -0
  71. package/dist/ts/ribbon/models/ribbon-file-menu-settings.ts +220 -0
  72. package/dist/ts/ribbon/models/ribbon-gallery-group-model.d.ts +44 -0
  73. package/dist/ts/ribbon/models/ribbon-gallery-group.d.ts +38 -0
  74. package/dist/ts/ribbon/models/ribbon-gallery-group.ts +50 -0
  75. package/dist/ts/ribbon/models/ribbon-gallery-item-model.d.ts +43 -0
  76. package/dist/ts/ribbon/models/ribbon-gallery-item.d.ts +38 -0
  77. package/dist/ts/ribbon/models/ribbon-gallery-item.ts +47 -0
  78. package/dist/ts/ribbon/models/ribbon-gallery-settings-model.d.ts +108 -0
  79. package/dist/ts/ribbon/models/ribbon-gallery-settings.d.ts +95 -0
  80. package/dist/ts/ribbon/models/ribbon-gallery-settings.ts +123 -0
  81. package/dist/ts/ribbon/models/ribbon-group-button-item-model.d.ts +64 -0
  82. package/dist/ts/ribbon/models/ribbon-group-button-item.d.ts +65 -0
  83. package/dist/ts/ribbon/models/ribbon-group-button-item.ts +85 -0
  84. package/dist/ts/ribbon/models/ribbon-group-button-settings-model.d.ts +32 -0
  85. package/dist/ts/ribbon/models/ribbon-group-button-settings.d.ts +29 -0
  86. package/dist/ts/ribbon/models/ribbon-group-button-settings.ts +38 -0
  87. package/dist/ts/ribbon/models/ribbon-group-model.d.ts +112 -0
  88. package/dist/ts/ribbon/models/ribbon-group.d.ts +105 -0
  89. package/dist/ts/ribbon/models/ribbon-group.ts +138 -0
  90. package/dist/ts/ribbon/models/ribbon-item-model.d.ts +144 -0
  91. package/dist/ts/ribbon/models/ribbon-item.d.ts +141 -0
  92. package/dist/ts/ribbon/models/ribbon-item.ts +190 -0
  93. package/dist/ts/ribbon/models/ribbon-splitbutton-settings-model.d.ts +114 -0
  94. package/dist/ts/ribbon/models/ribbon-splitbutton-settings.d.ts +107 -0
  95. package/dist/ts/ribbon/models/ribbon-splitbutton-settings.ts +140 -0
  96. package/dist/ts/ribbon/models/ribbon-tab-model.d.ts +44 -0
  97. package/dist/ts/ribbon/models/ribbon-tab.d.ts +45 -0
  98. package/dist/ts/ribbon/models/ribbon-tab.ts +61 -0
  99. package/dist/ts/ribbon/models/ribbon-tooltip-model.d.ts +43 -0
  100. package/dist/ts/ribbon/models/ribbon-tooltip.d.ts +36 -0
  101. package/dist/ts/ribbon/models/ribbon-tooltip.ts +47 -0
  102. package/dist/ts/ribbon/modules/index.d.ts +4 -0
  103. package/dist/ts/ribbon/modules/index.ts +5 -0
  104. package/dist/ts/ribbon/modules/ribbon-backstage.d.ts +117 -0
  105. package/dist/ts/ribbon/modules/ribbon-backstage.ts +620 -0
  106. package/dist/ts/ribbon/modules/ribbon-contextualtab.d.ts +27 -0
  107. package/dist/ts/ribbon/modules/ribbon-contextualtab.ts +93 -0
  108. package/dist/ts/ribbon/modules/ribbon-filemenu.d.ts +96 -0
  109. package/dist/ts/ribbon/modules/ribbon-filemenu.ts +353 -0
  110. package/dist/ts/ribbon/modules/ribbon-keytip.d.ts +56 -0
  111. package/dist/ts/ribbon/modules/ribbon-keytip.ts +580 -0
  112. package/package.json +55 -19
@@ -0,0 +1,141 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { RibbonItemType, RibbonItemSize, DisplayMode } from '../base/interface';
3
+ import { RibbonButtonSettingsModel } from './ribbon-button-settings-model';
4
+ import { RibbonCheckBoxSettingsModel } from './ribbon-checkbox-settings-model';
5
+ import { RibbonColorPickerSettingsModel } from './ribbon-colorpicker-settings-model';
6
+ import { RibbonComboBoxSettingsModel } from './ribbon-combobox-settings-model';
7
+ import { RibbonDropDownSettingsModel } from './ribbon-dropdown-settings-model';
8
+ import { RibbonSplitButtonSettingsModel } from './ribbon-splitbutton-settings-model';
9
+ import { RibbonTooltipModel } from './ribbon-tooltip-model';
10
+ import { RibbonGroupButtonSettingsModel } from './ribbon-group-button-settings-model';
11
+ import { RibbonGallerySettingsModel } from './ribbon-gallery-settings-model';
12
+ /**
13
+ * Defines the ribbon item.
14
+ */
15
+ export declare class RibbonItem extends ChildProperty<RibbonItem> {
16
+ /**
17
+ * Defines the key tip text to be accessed for specified Ribbon item.
18
+ *
19
+ * @default ''
20
+ */
21
+ keyTip: string;
22
+ /**
23
+ * Defines the active size of the ribbon item.
24
+ *
25
+ * @default 'Medium'
26
+ * @aspNumberEnum
27
+ */
28
+ activeSize: RibbonItemSize;
29
+ /**
30
+ * Defines the sizes that are allowed for the ribbon item on ribbon resize.
31
+ *
32
+ * @default null
33
+ * @aspNumberEnum
34
+ */
35
+ allowedSizes: RibbonItemSize;
36
+ /**
37
+ * Defines a unique identifier for the item.
38
+ *
39
+ * @default ''
40
+ */
41
+ id: string;
42
+ /**
43
+ * Defines one or more CSS classes to customize the appearance of item.
44
+ *
45
+ * @default ''
46
+ */
47
+ cssClass: string;
48
+ /**
49
+ * Defines whether the item is disabled or not.
50
+ *
51
+ * @default false
52
+ */
53
+ disabled: boolean;
54
+ /**
55
+ * Defines the template content for the ribbon item.
56
+ * `ActiveSize` property is passed as string in template context.
57
+ *
58
+ * @default ''
59
+ * @angularType string | object | HTMLElement
60
+ * @reactType string | function | JSX.Element | HTMLElement
61
+ * @vueType string | function | HTMLElement
62
+ * @aspType string
63
+ */
64
+ itemTemplate: string | HTMLElement | Function;
65
+ /**
66
+ * Defines the type of control to be added as the Ribbon Item.
67
+ *
68
+ * @isenumeration true
69
+ * @default RibbonItemType.Button
70
+ * @asptype RibbonItemType
71
+ */
72
+ type: RibbonItemType | string;
73
+ /**
74
+ * Defines the display options for the ribbon item.
75
+ *
76
+ * @default 'Auto'
77
+ * @aspNumberEnum
78
+ */
79
+ displayOptions: DisplayMode;
80
+ /**
81
+ * Defines the settings for the tooltip of the item.
82
+ *
83
+ * @default {}
84
+ */
85
+ ribbonTooltipSettings: RibbonTooltipModel;
86
+ /**
87
+ * Defines the settings for the ribbon button.
88
+ *
89
+ * @default {}
90
+ */
91
+ buttonSettings: RibbonButtonSettingsModel;
92
+ /**
93
+ * Defines the settings for the ribbon dropdown button.
94
+ *
95
+ * @default {}
96
+ */
97
+ dropDownSettings: RibbonDropDownSettingsModel;
98
+ /**
99
+ * Defines the settings for the ribbon checkbox.
100
+ *
101
+ * @default {}
102
+ */
103
+ checkBoxSettings: RibbonCheckBoxSettingsModel;
104
+ /**
105
+ * Defines the settings for the ribbon color picker.
106
+ *
107
+ * @default {}
108
+ */
109
+ colorPickerSettings: RibbonColorPickerSettingsModel;
110
+ /**
111
+ * Defines the settings for the ribbon combobox.
112
+ *
113
+ * @default {}
114
+ */
115
+ comboBoxSettings: RibbonComboBoxSettingsModel;
116
+ /**
117
+ * Defines the settings for the ribbon split button.
118
+ *
119
+ * @default {}
120
+ */
121
+ splitButtonSettings: RibbonSplitButtonSettingsModel;
122
+ /**
123
+ * Defines the properties for group button in Ribbon
124
+ *
125
+ * @default {}
126
+ */
127
+ groupButtonSettings: RibbonGroupButtonSettingsModel;
128
+ /**
129
+ * Defines the properties of the gallery view in Ribbon.
130
+ *
131
+ * @default {}
132
+ */
133
+ gallerySettings: RibbonGallerySettingsModel;
134
+ /**
135
+ * @param {Object} prop - Gets the property of item.
136
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
137
+ * @returns {void}
138
+ * @private
139
+ */
140
+ setProperties(prop: Object, muteOnChange: boolean): void;
141
+ }
@@ -0,0 +1,190 @@
1
+ import { ChildProperty, Complex, Property } from '@syncfusion/ej2-base';
2
+ import { RibbonItemType, RibbonItemSize, DisplayMode } from '../base/interface';
3
+ import { RibbonButtonSettings } from './ribbon-button-settings';
4
+ import { RibbonButtonSettingsModel } from './ribbon-button-settings-model';
5
+ import { RibbonCheckBoxSettings } from './ribbon-checkbox-settings';
6
+ import { RibbonCheckBoxSettingsModel } from './ribbon-checkbox-settings-model';
7
+ import { RibbonColorPickerSettings } from './ribbon-colorpicker-settings';
8
+ import { RibbonColorPickerSettingsModel } from './ribbon-colorpicker-settings-model';
9
+ import { RibbonComboBoxSettings } from './ribbon-combobox-settings';
10
+ import { RibbonComboBoxSettingsModel } from './ribbon-combobox-settings-model';
11
+ import { RibbonDropDownSettings } from './ribbon-dropdown-settings';
12
+ import { RibbonDropDownSettingsModel } from './ribbon-dropdown-settings-model';
13
+ import { RibbonSplitButtonSettings } from './ribbon-splitbutton-settings';
14
+ import { RibbonSplitButtonSettingsModel } from './ribbon-splitbutton-settings-model';
15
+ import { RibbonTooltip } from './ribbon-tooltip';
16
+ import { RibbonTooltipModel } from './ribbon-tooltip-model';
17
+ import { RibbonGroupButtonSettingsModel } from './ribbon-group-button-settings-model';
18
+ import { RibbonGroupButtonSettings } from './ribbon-group-button-settings';
19
+ import { RibbonGallerySettingsModel } from './ribbon-gallery-settings-model';
20
+ import { RibbonGallerySettings } from './ribbon-gallery-settings';
21
+
22
+ /**
23
+ * Defines the ribbon item.
24
+ */
25
+ export class RibbonItem extends ChildProperty<RibbonItem> {
26
+
27
+ /**
28
+ * Defines the key tip text to be accessed for specified Ribbon item.
29
+ *
30
+ * @default ''
31
+ */
32
+ @Property('')
33
+ public keyTip: string;
34
+
35
+ /**
36
+ * Defines the active size of the ribbon item.
37
+ *
38
+ * @default 'Medium'
39
+ * @aspNumberEnum
40
+ */
41
+ @Property(RibbonItemSize.Medium)
42
+ public activeSize : RibbonItemSize;
43
+
44
+ /**
45
+ * Defines the sizes that are allowed for the ribbon item on ribbon resize.
46
+ *
47
+ * @default null
48
+ * @aspNumberEnum
49
+ */
50
+ @Property(RibbonItemSize.Small | RibbonItemSize.Medium | RibbonItemSize.Large)
51
+ public allowedSizes: RibbonItemSize;
52
+
53
+ /**
54
+ * Defines a unique identifier for the item.
55
+ *
56
+ * @default ''
57
+ */
58
+ @Property('')
59
+ public id: string;
60
+
61
+ /**
62
+ * Defines one or more CSS classes to customize the appearance of item.
63
+ *
64
+ * @default ''
65
+ */
66
+ @Property('')
67
+ public cssClass: string;
68
+
69
+ /**
70
+ * Defines whether the item is disabled or not.
71
+ *
72
+ * @default false
73
+ */
74
+ @Property(false)
75
+ public disabled: boolean;
76
+
77
+ /**
78
+ * Defines the template content for the ribbon item.
79
+ * `ActiveSize` property is passed as string in template context.
80
+ *
81
+ * @default ''
82
+ * @angularType string | object | HTMLElement
83
+ * @reactType string | function | JSX.Element | HTMLElement
84
+ * @vueType string | function | HTMLElement
85
+ * @aspType string
86
+ */
87
+ @Property('')
88
+ public itemTemplate: string | HTMLElement | Function;
89
+
90
+ /**
91
+ * Defines the type of control to be added as the Ribbon Item.
92
+ *
93
+ * @isenumeration true
94
+ * @default RibbonItemType.Button
95
+ * @asptype RibbonItemType
96
+ */
97
+ @Property('Button')
98
+ public type: RibbonItemType | string;
99
+
100
+ /**
101
+ * Defines the display options for the ribbon item.
102
+ *
103
+ * @default 'Auto'
104
+ * @aspNumberEnum
105
+ */
106
+ @Property(DisplayMode.Auto)
107
+ public displayOptions: DisplayMode;
108
+
109
+ /**
110
+ * Defines the settings for the tooltip of the item.
111
+ *
112
+ * @default {}
113
+ */
114
+ @Complex<RibbonTooltipModel>({}, RibbonTooltip)
115
+ public ribbonTooltipSettings: RibbonTooltipModel;
116
+
117
+ /**
118
+ * Defines the settings for the ribbon button.
119
+ *
120
+ * @default {}
121
+ */
122
+ @Complex<RibbonButtonSettingsModel>({}, RibbonButtonSettings)
123
+ public buttonSettings: RibbonButtonSettingsModel;
124
+
125
+ /**
126
+ * Defines the settings for the ribbon dropdown button.
127
+ *
128
+ * @default {}
129
+ */
130
+ @Complex<RibbonDropDownSettingsModel>({}, RibbonDropDownSettings)
131
+ public dropDownSettings: RibbonDropDownSettingsModel;
132
+
133
+ /**
134
+ * Defines the settings for the ribbon checkbox.
135
+ *
136
+ * @default {}
137
+ */
138
+ @Complex<RibbonCheckBoxSettingsModel>({}, RibbonCheckBoxSettings)
139
+ public checkBoxSettings: RibbonCheckBoxSettingsModel;
140
+
141
+ /**
142
+ * Defines the settings for the ribbon color picker.
143
+ *
144
+ * @default {}
145
+ */
146
+ @Complex<RibbonColorPickerSettingsModel>({}, RibbonColorPickerSettings)
147
+ public colorPickerSettings: RibbonColorPickerSettingsModel;
148
+
149
+ /**
150
+ * Defines the settings for the ribbon combobox.
151
+ *
152
+ * @default {}
153
+ */
154
+ @Complex<RibbonComboBoxSettingsModel>({}, RibbonComboBoxSettings)
155
+ public comboBoxSettings: RibbonComboBoxSettingsModel;
156
+
157
+ /**
158
+ * Defines the settings for the ribbon split button.
159
+ *
160
+ * @default {}
161
+ */
162
+ @Complex<RibbonSplitButtonSettingsModel>({}, RibbonSplitButtonSettings)
163
+ public splitButtonSettings: RibbonSplitButtonSettingsModel;
164
+
165
+ /**
166
+ * Defines the properties for group button in Ribbon
167
+ *
168
+ * @default {}
169
+ */
170
+ @Complex<RibbonGroupButtonSettingsModel>({}, RibbonGroupButtonSettings)
171
+ public groupButtonSettings: RibbonGroupButtonSettingsModel;
172
+
173
+ /**
174
+ * Defines the properties of the gallery view in Ribbon.
175
+ *
176
+ * @default {}
177
+ */
178
+ @Complex<RibbonGallerySettingsModel>({}, RibbonGallerySettings)
179
+ public gallerySettings: RibbonGallerySettingsModel;
180
+
181
+ /**
182
+ * @param {Object} prop - Gets the property of item.
183
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
184
+ * @returns {void}
185
+ * @private
186
+ */
187
+ public setProperties(prop: Object, muteOnChange: boolean): void {
188
+ super.setProperties(prop, muteOnChange);
189
+ }
190
+ }
@@ -0,0 +1,114 @@
1
+ import { ChildProperty, Collection, Event, EmitType, Property } from '@syncfusion/ej2-base';import { ItemModel, Item, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs, ClickEventArgs } from '@syncfusion/ej2-splitbuttons';
2
+
3
+ /**
4
+ * Interface for a class RibbonSplitButtonSettings
5
+ */
6
+ export interface RibbonSplitButtonSettingsModel {
7
+
8
+ /**
9
+ * Specifies the event to close the SplitButton popup.
10
+ *
11
+ * @default ''
12
+ */
13
+ closeActionEvents?: string;
14
+
15
+ /**
16
+ * Specifies the content of the SplitButton.
17
+ *
18
+ * @default ''
19
+ */
20
+ content?: string;
21
+
22
+ /**
23
+ * Defines one or more CSS classes to customize the appearance of SplitButton.
24
+ *
25
+ * @default ''
26
+ */
27
+ cssClass?: string;
28
+
29
+ /**
30
+ * Defines the CSS class for the icons to be shown in the SplitButton.
31
+ *
32
+ * @default ''
33
+ */
34
+ iconCss?: string;
35
+
36
+ /**
37
+ * Defines the list of items for the SplitButton popup.
38
+ *
39
+ * @default []
40
+ */
41
+ items?: ItemModel[];
42
+
43
+ /**
44
+ * Specifies the selector for the element to be shown in the SplitButton popup.
45
+ *
46
+ * @default ''
47
+ * @aspType string
48
+ */
49
+ target?: string | HTMLElement;
50
+
51
+ /**
52
+ * Specifies additional HTML attributes to be applied to the SplitButton.
53
+ *
54
+ * @default {}
55
+ */
56
+ htmlAttributes?: { [key: string]: string };
57
+
58
+ /**
59
+ * Triggers before closing the SplitButton popup.
60
+ *
61
+ * @event beforeClose
62
+ */
63
+ beforeClose?: EmitType<BeforeOpenCloseMenuEventArgs>;
64
+
65
+ /**
66
+ * Triggers while rendering each Popup item of SplitButton.
67
+ *
68
+ * @event beforeItemRender
69
+ */
70
+ beforeItemRender?: EmitType<MenuEventArgs>;
71
+
72
+ /**
73
+ * Triggers before opening the SplitButton popup.
74
+ *
75
+ * @event beforeOpen
76
+ */
77
+ beforeOpen?: EmitType<BeforeOpenCloseMenuEventArgs>;
78
+
79
+ /**
80
+ * Triggers while closing the SplitButton popup.
81
+ *
82
+ * @event close
83
+ */
84
+ close?: EmitType<OpenCloseMenuEventArgs>;
85
+
86
+ /**
87
+ * Triggers while clicking the primary button in SplitButton.
88
+ *
89
+ * @event click
90
+ */
91
+ click?: EmitType<ClickEventArgs>;
92
+
93
+ /**
94
+ * Event triggers once the SplitButton is created.
95
+ *
96
+ * @event created
97
+ */
98
+ created?: EmitType<Event>;
99
+
100
+ /**
101
+ * Triggers while opening the SplitButton popup.
102
+ *
103
+ * @event open
104
+ */
105
+ open?: EmitType<OpenCloseMenuEventArgs>;
106
+
107
+ /**
108
+ * Triggers while selecting an action item in SplitButton 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, ClickEventArgs } from '@syncfusion/ej2-splitbuttons';
3
+ /**
4
+ * Defines the ribbon SplitButton item.
5
+ */
6
+ export declare class RibbonSplitButtonSettings extends ChildProperty<RibbonSplitButtonSettings> {
7
+ /**
8
+ * Specifies the event to close the SplitButton popup.
9
+ *
10
+ * @default ''
11
+ */
12
+ closeActionEvents: string;
13
+ /**
14
+ * Specifies the content of the SplitButton.
15
+ *
16
+ * @default ''
17
+ */
18
+ content: string;
19
+ /**
20
+ * Defines one or more CSS classes to customize the appearance of SplitButton.
21
+ *
22
+ * @default ''
23
+ */
24
+ cssClass: string;
25
+ /**
26
+ * Defines the CSS class for the icons to be shown in the SplitButton.
27
+ *
28
+ * @default ''
29
+ */
30
+ iconCss: string;
31
+ /**
32
+ * Defines the list of items for the SplitButton popup.
33
+ *
34
+ * @default []
35
+ */
36
+ items: ItemModel[];
37
+ /**
38
+ * Specifies the selector for the element to be shown in the SplitButton popup.
39
+ *
40
+ * @default ''
41
+ * @aspType string
42
+ */
43
+ target: string | HTMLElement;
44
+ /**
45
+ * Specifies additional HTML attributes to be applied to the SplitButton.
46
+ *
47
+ * @default {}
48
+ */
49
+ htmlAttributes: {
50
+ [key: string]: string;
51
+ };
52
+ /**
53
+ * Triggers before closing the SplitButton popup.
54
+ *
55
+ * @event beforeClose
56
+ */
57
+ beforeClose: EmitType<BeforeOpenCloseMenuEventArgs>;
58
+ /**
59
+ * Triggers while rendering each Popup item of SplitButton.
60
+ *
61
+ * @event beforeItemRender
62
+ */
63
+ beforeItemRender: EmitType<MenuEventArgs>;
64
+ /**
65
+ * Triggers before opening the SplitButton popup.
66
+ *
67
+ * @event beforeOpen
68
+ */
69
+ beforeOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
70
+ /**
71
+ * Triggers while closing the SplitButton popup.
72
+ *
73
+ * @event close
74
+ */
75
+ close: EmitType<OpenCloseMenuEventArgs>;
76
+ /**
77
+ * Triggers while clicking the primary button in SplitButton.
78
+ *
79
+ * @event click
80
+ */
81
+ click: EmitType<ClickEventArgs>;
82
+ /**
83
+ * Event triggers once the SplitButton is created.
84
+ *
85
+ * @event created
86
+ */
87
+ created: EmitType<Event>;
88
+ /**
89
+ * Triggers while opening the SplitButton popup.
90
+ *
91
+ * @event open
92
+ */
93
+ open: EmitType<OpenCloseMenuEventArgs>;
94
+ /**
95
+ * Triggers while selecting an action item in SplitButton 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
+ }
@@ -0,0 +1,140 @@
1
+ import { ChildProperty, Collection, Event, EmitType, Property } from '@syncfusion/ej2-base';
2
+ import { ItemModel, Item, BeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs, ClickEventArgs } from '@syncfusion/ej2-splitbuttons';
3
+
4
+ /**
5
+ * Defines the ribbon SplitButton item.
6
+ */
7
+ export class RibbonSplitButtonSettings extends ChildProperty<RibbonSplitButtonSettings> {
8
+
9
+ /**
10
+ * Specifies the event to close the SplitButton popup.
11
+ *
12
+ * @default ''
13
+ */
14
+ @Property('')
15
+ public closeActionEvents: string;
16
+
17
+ /**
18
+ * Specifies the content of the SplitButton.
19
+ *
20
+ * @default ''
21
+ */
22
+ @Property('')
23
+ public content: string;
24
+
25
+ /**
26
+ * Defines one or more CSS classes to customize the appearance of SplitButton.
27
+ *
28
+ * @default ''
29
+ */
30
+ @Property('')
31
+ public cssClass: string;
32
+
33
+ /**
34
+ * Defines the CSS class for the icons to be shown in the SplitButton.
35
+ *
36
+ * @default ''
37
+ */
38
+ @Property('')
39
+ public iconCss: string;
40
+
41
+ /**
42
+ * Defines the list of items for the SplitButton popup.
43
+ *
44
+ * @default []
45
+ */
46
+ @Collection<ItemModel>([], Item)
47
+ public items: ItemModel[];
48
+
49
+ /**
50
+ * Specifies the selector for the element to be shown in the SplitButton popup.
51
+ *
52
+ * @default ''
53
+ * @aspType string
54
+ */
55
+ @Property('')
56
+ public target: string | HTMLElement;
57
+
58
+ /**
59
+ * Specifies additional HTML attributes to be applied to the SplitButton.
60
+ *
61
+ * @default {}
62
+ */
63
+ @Property({})
64
+ public htmlAttributes: { [key: string]: string };
65
+
66
+ /**
67
+ * Triggers before closing the SplitButton popup.
68
+ *
69
+ * @event beforeClose
70
+ */
71
+ @Event()
72
+ public beforeClose: EmitType<BeforeOpenCloseMenuEventArgs>;
73
+
74
+ /**
75
+ * Triggers while rendering each Popup item of SplitButton.
76
+ *
77
+ * @event beforeItemRender
78
+ */
79
+ @Event()
80
+ public beforeItemRender: EmitType<MenuEventArgs>;
81
+
82
+ /**
83
+ * Triggers before opening the SplitButton popup.
84
+ *
85
+ * @event beforeOpen
86
+ */
87
+ @Event()
88
+ public beforeOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
89
+
90
+ /**
91
+ * Triggers while closing the SplitButton popup.
92
+ *
93
+ * @event close
94
+ */
95
+ @Event()
96
+ public close: EmitType<OpenCloseMenuEventArgs>;
97
+
98
+ /**
99
+ * Triggers while clicking the primary button in SplitButton.
100
+ *
101
+ * @event click
102
+ */
103
+ @Event()
104
+ public click: EmitType<ClickEventArgs>;
105
+
106
+ /**
107
+ * Event triggers once the SplitButton is created.
108
+ *
109
+ * @event created
110
+ */
111
+ @Event()
112
+ public created: EmitType<Event>;
113
+
114
+ /**
115
+ * Triggers while opening the SplitButton popup.
116
+ *
117
+ * @event open
118
+ */
119
+ @Event()
120
+ public open: EmitType<OpenCloseMenuEventArgs>;
121
+
122
+ /**
123
+ * Triggers while selecting an action item in SplitButton popup.
124
+ *
125
+ * @event select
126
+ */
127
+ @Event()
128
+ public select: EmitType<MenuEventArgs>;
129
+
130
+ /**
131
+ * @param {Object} prop - Gets the property of DropDown.
132
+ * @param {boolean} muteOnChange - Gets the boolean value of muteOnChange.
133
+ * @returns {void}
134
+ * @private
135
+ */
136
+ public setProperties(prop: Object, muteOnChange: boolean): void {
137
+ super.setProperties(prop, muteOnChange);
138
+ }
139
+
140
+ }