Placeholder example to modify state after loading
This commit is contained in:
@@ -16,9 +16,12 @@ $(document).ready(function() {
|
|||||||
"order": [[ 1, "asc" ]],
|
"order": [[ 1, "asc" ]],
|
||||||
"dom": 'C<"nd_clear-both">lfrtip',
|
"dom": 'C<"nd_clear-both">lfrtip',
|
||||||
"colVis": {
|
"colVis": {
|
||||||
"exclude": [ 0 ],
|
"exclude": [ 0 ]
|
||||||
"restore": 'Reset to Defaults'
|
|
||||||
},
|
},
|
||||||
|
[%# "stateLoadParams": function (settings, data) {
|
||||||
|
var idx = $('#dp-data-table').DataTable().column( 'c_duplex:name' ).index();
|
||||||
|
data.columns[idx].visible = true;
|
||||||
|
}, %]
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
"title": '',
|
"title": '',
|
||||||
|
|||||||
Reference in New Issue
Block a user