protonemedia / inertiajs-tables-laravel-query-builder

Inertia.js Tables for Laravel Query Builder
https://protone.media/en/blog/introducing-inertiajs-tables-a-datatables-like-package-for-laravel-query-builder
MIT License
438 stars 123 forks source link

Auto generation of table columns #39

Closed basicmonkey closed 2 years ago

basicmonkey commented 3 years ago

Great library, thank you!

Am I missing something or is there a way of auto generating the columns and headers based on the controller's output? The information is all in the AJAX response. This is to avoid having to statically add the template for header and body.

Many thanks,

James

elliottcoe commented 2 years ago

Did you ever figure this out? It doesn't seem odd that all of the columns are specified in the controller, but you have to build the table manually.

pascalbaljet commented 2 years ago

Fixed in v2