R
R
Romi2021-12-02 14:06:00
Vue.js
Romi, 2021-12-02 14:06:00

ElementUI. How to correctly implement checkboxes with multiple choice el-checkbox-group inside el-table?

A banal situation: one of the columns of the table contains checkboxes, by checking which you can do mass manipulations with the selected row.

I did not understand how to implement this in Element UI.

And with slots, and without slots, and as soon as I didn’t try it already.

It is necessary that the selected IDs (say, scope.row.id) end up in the checked array

. How can I do this? Is this even possible in Element UI or is it worth looking at some other framework?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2021-12-02
@romicohen

And with slots, and without slots, and as soon as I didn’t try it already.

Try to open the documentation (and it will be really cool if you get into the habit of reading the documentation all the time). There, in the section on the table component, there is an example that is called "multiple select".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question