Multiple default/initialization value
Multiple default/initialization value
Hi all,
I see that it's possible to set defaults value, but I'd like to have more defaults/initialization value (I have a lot of table but with different configuration).
Is it possible to have something like this?
$.extend( $.fn.dataTable.defaultsA, {...} );
$.extend( $.fn.dataTable.defaultsB, {...} );
$('#example1').dataTable( use defaultsA);
$('#example2').dataTable( use defaultsB);
Is there some way to manage that?
Thanks in advance
Cheers
Matteo
I see that it's possible to set defaults value, but I'd like to have more defaults/initialization value (I have a lot of table but with different configuration).
Is it possible to have something like this?
$.extend( $.fn.dataTable.defaultsA, {...} );
$.extend( $.fn.dataTable.defaultsB, {...} );
$('#example1').dataTable( use defaultsA);
$('#example2').dataTable( use defaultsB);
Is there some way to manage that?
Thanks in advance
Cheers
Matteo
This discussion has been closed.
Replies
[code]
var defaultsA = {...};
var defaultsB = {...};
$('#example1').dataTable(defaultsA);
$('#example2').dataTable(defaultsB);
[/code]
Allan
Thanks!