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
JavaScript
import { formatMessage } from 'devextreme/localization';
import { TableCellOperation } from '../../common/commands/dialogs/dialog-insert-table-cells-command';
import { DialogBase } from './dialog-base';
export class DeleteTableCellsDialog extends DialogBase {
getMaxWidth() {
return 300;
}
getTitle() {
return formatMessage("ASPxRichEditStringId.DeleteTableCellsTitle");
}
getFormOptions() {
return {
labelLocation: 'top',
colCount: 1,
items: [{
dataField: 'tableCellOperation',
editorType: 'dxRadioGroup',
label: { visible: false },
editorOptions: {
items: [
{ text: formatMessage("ASPxRichEditStringId.DeleteCells_ShiftCellsLeft"), value: TableCellOperation.ShiftToTheHorizontally },
{ text: formatMessage("ASPxRichEditStringId.DeleteCells_ShiftCellsUp"), value: TableCellOperation.ShiftToTheVertically },
{ text: formatMessage("ASPxRichEditStringId.DeleteCells_DeleteEntireRow"), value: TableCellOperation.RowOperation },
{ text: formatMessage("ASPxRichEditStringId.DeleteCells_DeleteEntireColumn"), value: TableCellOperation.ColumnOperation },
],
valueExpr: "value",
value: this.parameters.tableCellOperation
}
}]
};
}
updateParameters(parameters, data) {
parameters.tableCellOperation = data.tableCellOperation;
}
}