|
|
|
@ -55,6 +55,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
}, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
itemsCreator: BI.bind(this._itemsCreator4Trigger, this), |
|
|
|
|
itemFormatter: o.itemFormatter, |
|
|
|
|
itemHeight: o.itemHeight, |
|
|
|
|
value: this.storeValue, |
|
|
|
|
}); |
|
|
|
@ -138,31 +139,34 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.trigger.setAdapter(this); |
|
|
|
|
self.numberCounter.setAdapter(this); |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self._dataChange = true; |
|
|
|
|
self.storeValue = this.getValue(); |
|
|
|
|
self._adjust(function () { |
|
|
|
|
assertShowValue(); |
|
|
|
|
}); |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
|
listeners: [ |
|
|
|
|
{ |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self._dataChange = true; |
|
|
|
|
self.storeValue = this.getValue(); |
|
|
|
|
self._adjust(function () { |
|
|
|
|
assertShowValue(); |
|
|
|
|
}); |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM, |
|
|
|
|
action: function () { |
|
|
|
|
self._defaultState(); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR, |
|
|
|
|
action: function () { |
|
|
|
|
self._dataChange = true; |
|
|
|
|
self.setValue(); |
|
|
|
|
self._defaultState(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM, |
|
|
|
|
action: function () { |
|
|
|
|
self._defaultState(); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR, |
|
|
|
|
action: function () { |
|
|
|
|
self._dataChange = true; |
|
|
|
|
self.setValue(); |
|
|
|
|
self._defaultState(); |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
], |
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
itemFormatter: o.itemFormatter, |
|
|
|
|
itemHeight: o.itemHeight, |
|
|
|
|
onLoaded: function () { |
|
|
|
|
BI.nextTick(function () { |
|
|
|
@ -260,26 +264,28 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.combo, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}, { |
|
|
|
|
el: triggerBtn, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
items: [this.numberCounter] |
|
|
|
|
}, |
|
|
|
|
right: o.height, |
|
|
|
|
top: 0, |
|
|
|
|
height: o.height, |
|
|
|
|
}] |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: this.combo, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}, { |
|
|
|
|
el: triggerBtn, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
items: [this.numberCounter] |
|
|
|
|
}, |
|
|
|
|
right: o.height, |
|
|
|
|
top: 0, |
|
|
|
|
height: o.height, |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|