Combine KeyTable And TableTools & ColReorder (Example initialisation)
Combine KeyTable And TableTools & ColReorder (Example initialisation)
mamekedi
Posts: 2Questions: 1Answers: 0
Hello All,
i'm still a newby and have a little question:
I have TableTools & ColReorder together working.
how can i implement KeyTable in it.
i know how to insert the css and js files in my html file only.
below my script:
<script>
/*
* Example initialisation
*/
$(document).ready( function () {
$('#table_id').dataTable( {
/* eerste opties die ik heb toegevoegd is show all */
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
/* tweede optie die ik het toegevoegd is de knoppen van table tools zichtbaar maken */
"dom": 'T<"clear">Rlfrtip',
"tableTools": {
"sSwfPath": "//cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf"
}
} );
} );
</script>
This discussion has been closed.
Answers
Found It guys
<script>
/*
* Example initialisation
*/
$(document).ready( function () {
var table = $('#table_id').DataTable( {
new $.fn.dataTable.KeyTable( table );
} );
</script>