Multiple selecting
Using the v-model:items-selected will enable you to gather data of specific items by toggling checkbox on.
Example
<EasyDataTable v-model:items-selected="itemsSelected" :headers="headers" :items="items" /> <script lang="ts" setup> import { ref } from "vue"; const itemsSelected = ref<Item[]>([]); ... </script> | PLAYER | TEAM | NUMBER | POSITION | HEIGHT | WEIGHT (lbs) | LAST ATTENDED | COUNTRY | |
|---|---|---|---|---|---|---|---|---|
| Stephen Curry | GSW | 30 | G | 6-2 | 185 | Davidson | USA | |
| Lebron James | LAL | 6 | F | 6-9 | 250 | St. Vincent-St. Mary HS (OH) | USA | |
| Kevin Durant | BKN | 7 | F | 6-10 | 240 | Texas-Austin | USA | |
| Giannis Antetokounmpo | MIL | 34 | F | 6-11 | 242 | Filathlitikos | Greece |
items selected:
[]
