searchable-option-list
searchable-option-list copied to clipboard
"Select all" but only for filtered items
Is there a way to select all items that are matching the filter. And if not, how hard do you think is it to implement this feature.
Right now it is not possible but to implement this feature should be rather simple. I will put that on my TODO list
I made it with this, go to line 997 of sol.js (more or less) and this is what I got.
selectAll: function () {
if (this.config.multiple) {
var $changedInputs = this.$selectionContainer
.find('input[type="checkbox"]:not([disabled], :checked):visible')
.prop('checked', true)
.trigger('change', true);
this.close();
if ($.isFunction(this.config.events.onChange)) {
this.config.events.onChange.call(this, this, $changedInputs);
}
}
},