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 */