Is it possible to set columnDefs with global setting and also has independent setting?

Is it possible to set columnDefs with global setting and also has independent setting?

ChuckLuChuckLu Posts: 53Questions: 8Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I would like to have this global setting for all datatables
$.extend(true, $.fn.dataTable.defaults, {
columnDefs: [
{
targets: '_all',
defaultContent: '-'
}
]
});

And I also need independent setting for a single page
{ targets: [0, 1], visible: true},

why the independent setting make the global setting invalid?

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.