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

bpeterson priority asked 2 years 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 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



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

  • ForumUser: 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