datatables 3 serverside using ApiPlatform

datatables 3 serverside using ApiPlatform

tacman1123tacman1123 Posts: 235Questions: 52Answers: 1

I have a Symfony bundle that integrates datatables.net with ApiPlatform, and have recently updated it to use the datatables 3 beta. I dropped my old searchPanes and mostly replaced it with columnControl.

https://meili.survos.com/admin/browse/app_marvel
https://meili.survos.com/admin/browse/app_car

Still quite a bit to do, including documentation.

For Symfony developers, the big plus is that there's no custom javascript coding here. It relies heavily on attributes in the entity class, and you can customize columns and such in either the PHP attributes or in twig. But all the javascript is wrapped in a ux twig controller that uses stimulus.

All open source: https://github.com/survos/SurvosApiGridBundle for the bundle, https://github.com/survos-sites/meili for the app, which was originally just for meili searches (which is how I'm doing my search panes now).

If there's interest, I can provide more documentation. I expect to be making improvements while datatables.net is in beta. FWIW, it's also Symfony 8.1 BETA 1.

Replies

  • allanallan Posts: 65,740Questions: 1Answers: 10,934 Site admin

    Outstanding! Thank you for sharing this with us :).

    Allan

Sign In or Register to comment.