aspnetcore-js-devexpress-dot-richedit-24b8cc02.md
The base class for ribbon items.
export abstract class RibbonItemBase
var ribbonColorBox = new DevExpress.RichEdit.RibbonColorBoxItem;
ribbonColorBox.id = "myColorBox";
ribbonColorBox.beginGroup = true;
ribbonColorBox.text = "My Color";
ribbonColorBox.value = "red";
var options = DevExpress.RichEdit.createOptions();
options.ribbon.getTab(DevExpress.RichEdit.RibbonTabType.Home).insertItem(ribbonColorBox,3);
options.events.customCommandExecuted.addHandler(function(s, e) {
switch (e.commandName) {
case 'myColorBox':
console.log(e.parameter);
}
});
RibbonItemBase RibbonButtonItem
See Also
Specifies whether an item separator should be displayed before the current item.
beginGroup: boolean
| Type | Description |
|---|---|
| boolean |
true to display a separator before the item; otherwise, false.
|
Returns the ribbon item identifier.
id: RibbonItemId
| Type | Description |
|---|---|
| RibbonItemId |
The item identifier.
|
When a user selects a custom ribbon item, the RichEdit raises the CustomCommandExecutedEvent. The event argument’s commandName property returns the currently processed item’s id property value.
Note
Rich Text Editor determines commands and ribbon items by numeric identifiers. Use strings or numbers greater than 10000 for custom command identifiers.
Returns the ribbon item type.
abstract readonly type: RibbonItemType
| Type | Description |
|---|---|
| RibbonItemType |
The item type.
|