|
|
@ -18,7 +18,9 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
return selectedValues.length > 0; |
|
|
|
return selectedValues.length > 0; |
|
|
|
}, |
|
|
|
}, |
|
|
|
halfSelected: false, |
|
|
|
halfSelected: false, |
|
|
|
iconWrapperWidth: 26 |
|
|
|
iconWrapperWidth: 26, |
|
|
|
|
|
|
|
iconWidth: 16, |
|
|
|
|
|
|
|
iconHeight: 16, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -33,7 +35,9 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
self.setSelected(self.isSelected()); |
|
|
|
self.setSelected(self.isSelected()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
selected: isSelect, |
|
|
|
selected: isSelect, |
|
|
|
invisible: isHalfSelect |
|
|
|
invisible: isHalfSelect, |
|
|
|
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.half = BI.createWidget({ |
|
|
|
this.half = BI.createWidget({ |
|
|
|
type: "bi.half_icon_button", |
|
|
|
type: "bi.half_icon_button", |
|
|
@ -41,7 +45,9 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
self.setSelected(true); |
|
|
|
self.setSelected(true); |
|
|
|
}, |
|
|
|
}, |
|
|
|
invisible: isSelect || !isHalfSelect |
|
|
|
invisible: isSelect || !isHalfSelect, |
|
|
|
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
|
|
|
iconHeight: o.iconHeight |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self); |
|
|
|