RibbonSplitButton
12 Sep 20252 minutes to read
Defines the items of Ribbon.
Methods
addItems
Adds a new item to the menu. By default, new item appends to
the list as the last item, but you can insert based on the text parameter.
| Parameter | Type | Description |
|---|---|---|
| controlId | string |
Gets the control ID. |
| Items | ItemModel |
Gets the SplitButton items. |
| text (optional) | string |
Gets the text of the splitbutton item where the new item needs to be inserted. |
Returns void
removeItems
Removes the items from the menu.
| Parameter | Type | Description |
|---|---|---|
| controlId | string |
Gets the control ID. |
| Items | string[] |
- |
| isUniqueId (optional) | boolean |
- |
Returns void
toggle
To open/close SplitButton popup based on current state of the SplitButton.
| Parameter | Type | Description |
|---|---|---|
| controlId | string |
Gets the control ID. |
Returns void
updateSplitButton
Updates the splitbutton.
| Parameter | Type | Description |
|---|---|---|
| prop | RibbonSplitButtonSettingsModel |
Gets the splitbutton property. |
| id | string |
Gets the ID of dropdown. |
Returns void