Browse Source

Pull request #1743: 无JIRA任务 提供一个控制icon的接口

Merge in VISUAL/fineui from ~FAY/fineui:master to master

* commit '56e81d9dad0403b377858e53338e304b6aed23a2':
  说明
  无JIRA任务 提供一个控制icon的接口
es6
fay 4 years ago
parent
commit
14d33be7c9
  1. 8
      src/widget/editor/editor.search.js
  2. 4
      typescript/widget/editor/editor.search.ts

8
src/widget/editor/editor.search.js

@ -183,6 +183,14 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
isValid: function () { isValid: function () {
return this.editor.isValid(); return this.editor.isValid();
},
showClearIcon: function () {
this.clear.visible();
},
hideClearIcon: function () {
this.clear.invisible();
} }
}); });
BI.SearchEditor.EVENT_CHANGE = "EVENT_CHANGE"; BI.SearchEditor.EVENT_CHANGE = "EVENT_CHANGE";

4
typescript/widget/editor/editor.search.ts

@ -38,4 +38,8 @@ export declare class SearchEditor extends Widget {
isEditing(): boolean; isEditing(): boolean;
isValid(): boolean; isValid(): boolean;
showClearIcon(): void;
hideClearIcon(): void;
} }

Loading…
Cancel
Save