Browse Source

无JIRA bi.search_editor 有初始值的时候显示清除按钮

es6
Dailer 3 years ago
parent
commit
3d30827445
  1. 3
      src/widget/editor/editor.search.js

3
src/widget/editor/editor.search.js

@ -32,7 +32,8 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
this.clear = BI.createWidget({
type: "bi.icon_button",
stopEvent: true,
cls: "close-font"
cls: "close-font",
invisible: !o.value
});
this.clear.on(BI.IconButton.EVENT_CHANGE, function () {
self.setValue("");

Loading…
Cancel
Save