jamesdordoy / laravel-vue-datatable

Vue.js Datatable made for Laravel
https://jamesdordoy.github.io/laravel-vue-datatable
MIT License
151 stars 52 forks source link

How to create Expanded Data ? #166

Closed pimenlabs closed 1 year ago

pimenlabs commented 1 year ago

hi, I'm going to make a feature of expanding data in a table, but I don't see any documentation that talks about that. can you give directions?

jamesdordoy commented 1 year ago

Hey @pimenlabs,

U need to use the body slot and create your own logic and html around the expanding row.

Ive looked over the docs but havent used or updated this package in a while. If your using vue 2, it should work fine but id look at other packages for the time being such as https://vanilla-components.com/guide/components/datatable.html. I havent used it personally but it looks awesome :)

pimenlabs commented 1 year ago

Hey @jamesdordoy, when can you update this package to add child row features?

jamesdordoy commented 1 year ago

You can already achieve this functionality, refer to my previous comment:

https://github.com/jamesdordoy/laravel-vue-datatable/blob/master/src/components/DataTable.vue#L46

https://v2.vuejs.org/v2/guide/components-slots.html

pimenlabs commented 1 year ago

can you give me sampel ?