UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

20 lines (19 loc) 707 B
import { RibbonItemBase, RibbonItemType } from './base'; export class RibbonButtonItem extends RibbonItemBase { type = RibbonItemType.Button; text; showText; toggleMode; selected; icon; localizationId; constructor(id, text, options = {}) { super(id, options.beginGroup); this.text = text; this.icon = options.icon; this.localizationId = options.localizationId; this.showText = options.showText === undefined ? false : options.showText; this.toggleMode = options.toggleMode === undefined ? false : options.toggleMode; this.selected = options.selected === undefined ? false : options.selected; } }