Skip to content

<b-table> Select all, clear selected #3064

Closed
@kyleweishaupt

Description

@kyleweishaupt

I've just updated my application to use the 'selectable' mode on b-table and it's great. The only down side (and as stated in the docs) is that the selected rows are read-only. Right now I'm using the selected rows as a synced prop to the parent so that it can pass those rows to a 'bulk' actions component. There's just no way to have the 'bulk actions' component tell the table to update the selected rows.

My feature suggestion is to add a method for selecting/unselecting all rows in b-table.

Only selecting/unselecting rows on the current page is fine for my use case. Using $refs to trigger this on the table could work. Maybe even another method for replacing the selected rows array?

Thanks for all the hard work!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions