Common Options and Styles
Common Options and Styles
camainc
Posts: 19Questions: 3Answers: 0
I have several smaller tables on a single page, and they all share the same common options, same number of columns, etc.
How can I set those options once, and then apply them to each of my table instances? I'm thinking like the jQuery $.ajaxSetup() function allows you to set common options for several different ajax calls (i.e.,
http://api.jquery.com/jQuery.ajaxSetup).
Thanks
How can I set those options once, and then apply them to each of my table instances? I'm thinking like the jQuery $.ajaxSetup() function allows you to set common options for several different ajax calls (i.e.,
http://api.jquery.com/jQuery.ajaxSetup).
Thanks
This discussion has been closed.
Replies
[code]
var tableOptions = {
"bJQueryUI": true,
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"aoColumns": [
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]
};
$("#incumbentsTable").dataTable(tableOptions);
[/code]