How to hide filter and table information

How to hide filter and table information

bittersourbittersour Posts: 6Questions: 3Answers: 0

Hi,

How can I hide filter and table information? My codes is as below.

$(document).ready(function() { var table = $('#example').DataTable( { scrollY: "300px", scrollX: true, scrollCollapse: true, paging: false } ); new $.fn.dataTable.FixedColumns( table, { leftColumns: 2 } ); } );

This question has an accepted answers - jump to answer

Answers

  • RpiechuraRpiechura Posts: 98Questions: 3Answers: 14
    Answer ✓

    That shouldn't be all the initialization code, you should have "dom" somewhere in there if you want to specify things to turn off. http://datatables.net/reference/option/dom. My guess is that it defaults to

    "dom": lftipr;
    

    And you want to leave off the F (to turn the filter off) and I (to turn the information off).

    "dom": ltpr;
    
This discussion has been closed.