You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found a solution, This will work with pagination (local pagination)
You need to attribute a vbt_id manually (used on internal by vue-bootstrap4-table)
Select All
let i = 1, self = this;
_.map(self.rows, function(row) { // used underscore.js (just loop over rows, eg: for of)
contact.vbt_id = i++;
self.$refs.vueBootstrap4Table.addSelectedItem(row);
});
this.$refs.groupContacts.allRowsSelected = true; // hack to update main checkbox
Unselect All
let i = 1, self = this;
_.map(self.rows, function(row) { // used underscore.js (just loop over rows, eg: for of)
contact.vbt_id = i++;
self.$refs.vueBootstrap4Table.removeSelectedItem(row);
});
this.$refs.groupContacts.allRowsSelected = false; // hack to update main checkbox
A method for programmatically selecting and deselecting lines is missing.
If a line is selected and the data array changes, a line still remains selected even though it no longer exists.
It would be nice if you could implement 2 methods for this.
The text was updated successfully, but these errors were encountered: