|
|
@ -78,9 +78,9 @@ export class MultiSelectSearchLoader extends Widget { |
|
|
|
}, |
|
|
|
}, |
|
|
|
itemsCreator(op, callback) { |
|
|
|
itemsCreator(op, callback) { |
|
|
|
self.storeValue && |
|
|
|
self.storeValue && |
|
|
|
(op = extend(op || {}, { |
|
|
|
(op = extend(op || {}, { |
|
|
|
selectedValues: self.storeValue.value, |
|
|
|
selectedValues: self.storeValue.value, |
|
|
|
})); |
|
|
|
})); |
|
|
|
opts.itemsCreator(op, ob => { |
|
|
|
opts.itemsCreator(op, ob => { |
|
|
|
const keyword = (ob.keyword = opts.keywordGetter()); |
|
|
|
const keyword = (ob.keyword = opts.keywordGetter()); |
|
|
|
hasNext = ob.hasNext; |
|
|
|
hasNext = ob.hasNext; |
|
|
@ -113,7 +113,7 @@ export class MultiSelectSearchLoader extends Widget { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
behaviors: { |
|
|
|
behaviors: { |
|
|
|
redmark () { |
|
|
|
redmark() { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -123,7 +123,7 @@ export class MultiSelectSearchLoader extends Widget { |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
itemsCreator (op, callback) { |
|
|
|
itemsCreator(op, callback) { |
|
|
|
self.storeValue && (op = BI.extend(op || {}, { |
|
|
|
self.storeValue && (op = BI.extend(op || {}, { |
|
|
|
selectedValues: self.storeValue.value, |
|
|
|
selectedValues: self.storeValue.value, |
|
|
|
})); |
|
|
|
})); |
|
|
@ -146,13 +146,13 @@ export class MultiSelectSearchLoader extends Widget { |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: opts.value, |
|
|
|
value: opts.value, |
|
|
|
height: "fill", |
|
|
|
height: "fill", |
|
|
|
}); |
|
|
|
}, this); |
|
|
|
this.button_group.on(Controller.EVENT_CHANGE, function () { |
|
|
|
this.button_group.on(Controller.EVENT_CHANGE, function() { |
|
|
|
self.fireEvent(Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(Controller.EVENT_CHANGE, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const searchLoaderEventChangeName = opts.allowSelectAll ? SelectList.EVENT_CHANGE : ListPane.EVENT_CHANGE; |
|
|
|
const searchLoaderEventChangeName = opts.allowSelectAll ? SelectList.EVENT_CHANGE : ListPane.EVENT_CHANGE; |
|
|
|
this.button_group.on(searchLoaderEventChangeName, function () { |
|
|
|
this.button_group.on(searchLoaderEventChangeName, function() { |
|
|
|
self.fireEvent(MultiSelectSearchLoader.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(MultiSelectSearchLoader.EVENT_CHANGE, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|