Browse Source

BI-46143 feat: 定义SingleSelectItem的事件

es6
Zhenfei.Li 5 years ago
parent
commit
0cfd2bf27b
  1. 5
      src/case/button/item.singleselect.js

5
src/case/button/item.singleselect.js

@ -42,11 +42,14 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);
}
},
setSelected: function (v) {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
}
});
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);
Loading…
Cancel
Save