Topic: Auto Columns in Datatables [based on json keys]

bpeterson priority asked 1 month ago


In this datatable snippet

I wonder how I may best "Auto Name" the labels and fields ??? [see the JS]


Grzegorz Bujański staff answered 1 month 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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Priority
  • 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