From d2f0d8521ffbee343f6fe4714fe25d235bbfa327 Mon Sep 17 00:00:00 2001 From: "kotov.alexander" Date: Wed, 10 Apr 2019 19:06:46 +0300 Subject: [PATCH] Add accepted values list for editor action buttons shortcuts (T731559) (#7650) --- js/docEnums.js | 5 +++++ js/ui/text_box/ui.text_editor.base.js | 2 +- ts/dx.all.d.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/docEnums.js b/js/docEnums.js index fbc7f77675f9..68e775d0dca6 100644 --- a/js/docEnums.js +++ b/js/docEnums.js @@ -840,6 +840,11 @@ * @enum {'after'|'before'} */ +/** + * @typedef {string} Enums.TextEditorButtonName + * @enum {'clear'|'spins'|'dropDown'} + */ + /** * @typedef {string} Enums.SmallValuesGroupingMode * @enum {'none'|'smallValueThreshold'|'topN'} diff --git a/js/ui/text_box/ui.text_editor.base.js b/js/ui/text_box/ui.text_editor.base.js index d1f9d9b83c5c..4abbfac442cf 100644 --- a/js/ui/text_box/ui.text_editor.base.js +++ b/js/ui/text_box/ui.text_editor.base.js @@ -105,7 +105,7 @@ var TextEditorBase = Editor.inherit({ /** * @name dxTextEditorOptions.buttons - * @type Array + * @type Array * @default undefined */ buttons: void 0, diff --git a/ts/dx.all.d.ts b/ts/dx.all.d.ts index 769f034631d7..10bbf52e3f05 100644 --- a/ts/dx.all.d.ts +++ b/ts/dx.all.d.ts @@ -8357,7 +8357,7 @@ declare module DevExpress.ui { /** @name dxTextEditor.Options */ export interface dxTextEditorOptions extends EditorOptions { /** @name dxTextEditor.Options.buttons */ - buttons?: Array; + buttons?: Array<'clear' | 'spins' | 'dropDown' | dxActionButton>; /** @name dxTextEditor.Options.focusStateEnabled */ focusStateEnabled?: boolean; /** @name dxTextEditor.Options.hoverStateEnabled */