Skip to content
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

[MdTable] pre select items with selection #1292

samuelazran opened this Issue Dec 10, 2017 · 1 comment


None yet
2 participants
Copy link

commented Dec 10, 2017

Is it possible to programmatically select items in the table?
I can't find the option in the api as well as when looking at the code of the table component.
Would be handy to have property for it for example:
<md-table> <md-table-row slot="md-table-row" slot-scope="{ item }" md-selectable="multiple" md-auto-select :md-is-selected="true">
If it's not possible currently, is my only option is to fork and add the option?



This comment has been minimized.

Copy link

commented Dec 11, 2017

Hey, yes now its not possible. If you can add it it will be cool!

@Samuell1 Samuell1 changed the title pre select items in table with selection [MdTable] pre select items with selection Dec 11, 2017

VdustR added a commit to VdustR/vue-material that referenced this issue Dec 29, 2017

marcosmoura added a commit that referenced this issue Dec 29, 2017

feat(MdTable): reactive selection (#1358)
* fix(MdTable): multiple selection with table sorting

an easy way to handle multiple selection

fix #1348

* refactor(MdTable): single selection using instance comparing instead of id comparing

both `MdTable` and `MdTableRow` emit `md-selected` event to avoid breaking change

* feat(MdTable): new props `:md-selected-value.sync` for reactive selection

fix #1292

* fix(MdTable): `syncSelectedValue` without `mdSelectedValue` in multiple selecting mode

* fix(MdTableHeadSelection): fix `allSelected`, now disabled row could be tick from `md-selected-value

* fix(MdTableRow): remove `md-selected` event

too many duplicated events on a selection. It should be emit from `MdTable`

BREAKING CHANGE: no more `md-selected` event from `MdTableRow`

* fix(MdTable): select event should be triggered after select update event

* fix(MdTableHeadSelection): select all only take effect on selectable items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.