Column names from string array
Column names from string array
ebagaipo
Posts: 13Questions: 5Answers: 0
How to populate datatables' column names from string array, ex. ["Payee Id","Payee Name","Payee Email"]?
Many thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @ebagaipo ,
You can just iterate over that array and create the initialisation object for DataTables. The option you want is either
columns.name
orcolumns.title
.Cheers,
Colin
Hi Colin,
Thank you for the hint.
This works for me: