UNPKG

devexpress-richedit

Version:

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

36 lines (35 loc) 1.69 kB
import { formatMessage } from 'devextreme/localization'; import { TableCellOperation } from '../../common/commands/dialogs/dialog-insert-table-cells-command'; import { DialogBase } from './dialog-base'; export class InsertTableCellsDialog extends DialogBase { getMaxWidth() { return 300; } getTitle() { return formatMessage('ASPxRichEditStringId.InsertTableCellsTitle'); } getFormOptions() { return { labelLocation: 'top', colCount: 1, items: [{ dataField: 'tableCellOperation', editorType: 'dxRadioGroup', label: { visible: false }, editorOptions: { items: [ { text: formatMessage('ASPxRichEditStringId.InsertCells_ShiftCellsRight'), value: TableCellOperation.ShiftToTheHorizontally }, { text: formatMessage('ASPxRichEditStringId.InsertCells_ShiftCellsDown'), value: TableCellOperation.ShiftToTheVertically }, { text: formatMessage('ASPxRichEditStringId.InsertCells_InsertEntireRow'), value: TableCellOperation.RowOperation }, { text: formatMessage('ASPxRichEditStringId.InsertCells_InsertEntireColumn'), value: TableCellOperation.ColumnOperation }, ], valueExpr: "value", value: this.parameters.tableCellOperation } }] }; } updateParameters(parameters, data) { parameters.tableCellOperation = data.tableCellOperation; } }