diff --git a/src/widget/editor/editor.search.js b/src/widget/editor/editor.search.js index 8eef89f2f1..97e77c0868 100644 --- a/src/widget/editor/editor.search.js +++ b/src/widget/editor/editor.search.js @@ -183,6 +183,14 @@ BI.SearchEditor = BI.inherit(BI.Widget, { isValid: function () { return this.editor.isValid(); + }, + + showClearIcon: function () { + this.clear.visible(); + }, + + hideClearIcon: function () { + this.clear.invisible(); } }); BI.SearchEditor.EVENT_CHANGE = "EVENT_CHANGE"; diff --git a/typescript/widget/editor/editor.search.ts b/typescript/widget/editor/editor.search.ts index 7e50064372..09566c33ad 100644 --- a/typescript/widget/editor/editor.search.ts +++ b/typescript/widget/editor/editor.search.ts @@ -38,4 +38,8 @@ export declare class SearchEditor extends Widget { isEditing(): boolean; isValid(): boolean; + + showClearIcon(): void; + + hideClearIcon(): void; }