Can I pass a second set of settings after the main one has been executed?
Can I pass a second set of settings after the main one has been executed?
maiolica
Posts: 1Questions: 0Answers: 0
I'm trying to DRY my code by using a common initializer for all my tables, which pass to the datatable function all the common settings for my tables (aaSorting, sPaginationType, oLanguage)
After that code has been executed I would like to pass some more settings using separate functions, for example one of my table has this:
parent.$table.dataTable({
"aoColumns": [
null,
null,
null,
{ "sType": "uk_date" },
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]
});
The problem is using dataTable() again on an already initialized table, is there a solution?
Thanks
After that code has been executed I would like to pass some more settings using separate functions, for example one of my table has this:
parent.$table.dataTable({
"aoColumns": [
null,
null,
null,
{ "sType": "uk_date" },
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]
});
The problem is using dataTable() again on an already initialized table, is there a solution?
Thanks
This discussion has been closed.
Replies
Allan