setting two different default settings
setting two different default settings
karanits
Posts: 9Questions: 0Answers: 0
I would like to know if there a method such that i can set two different sets of defaults for datatables. right now i am using
[code]$.extend( $.fn.dataTable.defaults, {
"bFilter": false,
"bSort": false
} );
[/code]
I want to have two sets of values whic could be used in different datatabes like
[code]
//set one
$.extend( $.fn.dataTable.defaults, {
"bFilter": false,
"bSort": false
} );
//set two
$.extend( $.fn.dataTable.defaults, {
"bFilter": true,
"bSort": true
} );
$('#example').dataTable({
//some setting here to select which set of of defaults to use
});
} );
[/code]
could this be a new feature in future updates?
[code]$.extend( $.fn.dataTable.defaults, {
"bFilter": false,
"bSort": false
} );
[/code]
I want to have two sets of values whic could be used in different datatabes like
[code]
//set one
$.extend( $.fn.dataTable.defaults, {
"bFilter": false,
"bSort": false
} );
//set two
$.extend( $.fn.dataTable.defaults, {
"bFilter": true,
"bSort": true
} );
$('#example').dataTable({
//some setting here to select which set of of defaults to use
});
} );
[/code]
could this be a new feature in future updates?
This discussion has been closed.