data: in the dataTable()
data: in the dataTable()
XenC
Posts: 2Questions: 1Answers: 0
See:
$('#example').DataTable( {
data: data,
columns: [
{ data: 'name' },
{ data: 'position' },
{ data: 'salary' },
{ data: 'office' }
]
} );
In the HTML file do we have to specify the <th> for each column header>? With the columns already specified in the source above is there an option to automatically provide the header for each column?
This discussion has been closed.
Answers
Either:
columns.title
to have DataTables create the cells with a title.Allan
Hi Allan,
Thank you for responding. I will certainly give this a try.
Regards,
Xen