Select all elements in data table #4951
Replies: 4 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
https://codesandbox.io/s/wild-violet-cstm7m?file=/src/Demo.vue |
Beta Was this translation helpful? Give feedback.
-
I can do that with default-checked-row-keys or checked-row-key, It depends on the scenario you're using ref https://www.naiveui.com/zh-CN/os-theme/components/data-table#select.vue |
Beta Was this translation helpful? Give feedback.
-
https://codesandbox.io/s/pensive-colden-3fwq7h?file=/src/Demo.vue I'm not sure if this is the effect you need, and if not, maybe I don't understand your needs well enough |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I want to select all elements in a data table, without using 'option' prop. Can someone help me?
The data table mentioned, is with pagination, so i would select all elements in all pages without 'option' prop, but with click on checkbox on header column
Beta Was this translation helpful? Give feedback.
All reactions