Topic: Auto Columns in Datatables [based on json keys]
In this datatable snippet
I wonder how I may best "Auto Name" the labels and fields ??? [see the JS]
Grzegorz Bujański staff answered 2 years ago
You need to pass the new columns names to the update method. I prepared a snippet for you in which I added the appropriate code: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/4481555
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 5.0.0
- Device: n/a
- Browser: n/a
- OS: n/a
- Provided sample code: No
- Provided link: Yes