TableTools and Adminica
TableTools and Adminica
CianH
Posts: 1Questions: 0Answers: 0
Hi Guys,
Ive been trying to add TableTools to DataTables, but it wont display the buttons on DataTables: Picture: http://gyazo.com/ce4e149d757920bbaa1a2de6543d3a25.png?1328355157
The Code is:
[quote][code]
var table1 = $('#dt1 .datatable').dataTable( {
"bJQueryUI": true,
"sScrollX": "",
"bSortClasses": false,
"aaSorting": [[0,'asc']],
"bAutoWidth": true,
"bInfo": true,
"sScrollX": "101%",
"bScrollCollapse": true,
"sPaginationType": "full_numbers",
"bRetrieve": true,
"sDom": '<"H"lTfr>t<"F"ip>',
"oTableTools": {
"aButtons": [ "copy", "print" ]
},
"fnInitComplete": function () {
$("#dt1 .dataTables_length > label > select").uniform();
$("#dt1 .dataTables_filter input[type=text]").addClass("text");
$(".datatable").css("visibility","visible");
}
});
[/code][/quote]
im guessing the problem is todo with the sDom but cannot fogure out how to get it working with Adminica.
Kind Regards Cian
Ive been trying to add TableTools to DataTables, but it wont display the buttons on DataTables: Picture: http://gyazo.com/ce4e149d757920bbaa1a2de6543d3a25.png?1328355157
The Code is:
[quote][code]
var table1 = $('#dt1 .datatable').dataTable( {
"bJQueryUI": true,
"sScrollX": "",
"bSortClasses": false,
"aaSorting": [[0,'asc']],
"bAutoWidth": true,
"bInfo": true,
"sScrollX": "101%",
"bScrollCollapse": true,
"sPaginationType": "full_numbers",
"bRetrieve": true,
"sDom": '<"H"lTfr>t<"F"ip>',
"oTableTools": {
"aButtons": [ "copy", "print" ]
},
"fnInitComplete": function () {
$("#dt1 .dataTables_length > label > select").uniform();
$("#dt1 .dataTables_filter input[type=text]").addClass("text");
$(".datatable").css("visibility","visible");
}
});
[/code][/quote]
im guessing the problem is todo with the sDom but cannot fogure out how to get it working with Adminica.
Kind Regards Cian
This discussion has been closed.
Replies
Allan