|
|
|
@ -174,7 +174,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
value: o.value |
|
|
|
|
}, |
|
|
|
|
hideChecker: function (e) { |
|
|
|
|
return self.numberCounter.element.find(e.target).length === 0; |
|
|
|
|
return triggerBtn.element.find(e.target).length === 0 && self.numberCounter.element.find(e.target).length === 0; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -199,6 +199,21 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var triggerBtn = BI.createWidget({ |
|
|
|
|
type: "bi.trigger_icon_button", |
|
|
|
|
width: o.height, |
|
|
|
|
height: o.height, |
|
|
|
|
cls: "multi-select-trigger-icon-button" |
|
|
|
|
}); |
|
|
|
|
triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () { |
|
|
|
|
self.numberCounter.hideView(); |
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
self.combo.hideView(); |
|
|
|
|
} else { |
|
|
|
|
self.combo.showView(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.numberCounter = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_check_selected_switcher", |
|
|
|
|
masker: { |
|
|
|
@ -252,6 +267,11 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}, { |
|
|
|
|
el: triggerBtn, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|