Combine KeyTable And TableTools & ColReorder (Example initialisation)

Combine KeyTable And TableTools & ColReorder (Example initialisation)

mamekedimamekedi Posts: 2Questions: 1Answers: 0
edited June 2015 in Free community support

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>

Answers

  • mamekedimamekedi Posts: 2Questions: 1Answers: 0
    edited June 2015

    Found It guys

    <script>

    /*
    * Example initialisation
    */

    $(document).ready( function () {

    var table = $('#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"
    
         }
    
    } );
    

    new $.fn.dataTable.KeyTable( table );

    } );

    </script>

This discussion has been closed.