|
|
@ -20,11 +20,6 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, { |
|
|
|
this.checkbox = BI.createWidget({ |
|
|
|
this.checkbox = BI.createWidget({ |
|
|
|
type: "bi.checkbox" |
|
|
|
type: "bi.checkbox" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
|
|
|
self.setSelected(self.isSelected()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
columnSize: [o.iconWrapperWidth || o.height, "fill"], |
|
|
|
columnSize: [o.iconWrapperWidth || o.height, "fill"], |
|
|
@ -74,7 +69,6 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
doClick: function () { |
|
|
|
BI.MultiSelectItem.superclass.doClick.apply(this, arguments); |
|
|
|
BI.MultiSelectItem.superclass.doClick.apply(this, arguments); |
|
|
|
this.checkbox.setSelected(this.isSelected()); |
|
|
|
|
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this); |
|
|
|
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this); |
|
|
|
} |
|
|
|
} |
|
|
|