-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-select rows #60
Comments
Found a workaround, #82 (comment) |
I also needed something to dynamically set a selection of rows checked. Searched for hours, tried many things, here is what I came up with following the idea of @Kwaadpepper
let i = 1, self = this;
self.rows.map( (item) => {
if (item.isSelected==1) {
item.vbt_id = i++;
self.$refs.vbt.addSelectedItem(item);
} else {
item.vbt_id = i++;
}
}); For me that was all I needed to see my selection properly checked. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to be able to not only give the rows information to the table, but also give the already selected rows, to avoid losing that information on a page reload.
Maybe as a new prop, passing only the indexes of the previously selected rows or something like that.
The text was updated successfully, but these errors were encountered: