Skip to content

Commit

Permalink
Add accepted values list for editor action buttons shortcuts (T731559) (
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-kotov-dx authored Apr 10, 2019
1 parent 5635149 commit d2f0d85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions js/docEnums.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,11 @@
* @enum {'after'|'before'}
*/

/**
* @typedef {string} Enums.TextEditorButtonName
* @enum {'clear'|'spins'|'dropDown'}
*/

/**
* @typedef {string} Enums.SmallValuesGroupingMode
* @enum {'none'|'smallValueThreshold'|'topN'}
Expand Down
2 changes: 1 addition & 1 deletion js/ui/text_box/ui.text_editor.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var TextEditorBase = Editor.inherit({

/**
* @name dxTextEditorOptions.buttons
* @type Array<string,dxActionButton>
* @type Array<Enums.TextEditorButtonName,dxActionButton>
* @default undefined
*/
buttons: void 0,
Expand Down
2 changes: 1 addition & 1 deletion ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8357,7 +8357,7 @@ declare module DevExpress.ui {
/** @name dxTextEditor.Options */
export interface dxTextEditorOptions<T = dxTextEditor> extends EditorOptions<T> {
/** @name dxTextEditor.Options.buttons */
buttons?: Array<string | dxActionButton>;
buttons?: Array<'clear' | 'spins' | 'dropDown' | dxActionButton>;
/** @name dxTextEditor.Options.focusStateEnabled */
focusStateEnabled?: boolean;
/** @name dxTextEditor.Options.hoverStateEnabled */
Expand Down

0 comments on commit d2f0d85

Please sign in to comment.