How to understand script structure

How to understand script structure

rubinjo13rubinjo13 Posts: 4Questions: 3Answers: 0
edited May 2017 in Free community support

Hi!,

i have this working code now:

 <script>    
        $(document).ready(function() {
            $('#table_id').DataTable( {
                "columnDefs": [
                    {
                        "targets": [ 7 ],
                        "visible": false,
                        "searchable": false  
                    }
                ]
            } );
        } );
          </script>

i like to add in the following option, but i don't know how to put it in the code:

"iDisplayLength": 25 

Does somebody have a good starting point for me to understand how this script code works?

This question has an accepted answers - jump to answer

Answers

  • Rob BrunRob Brun Posts: 56Questions: 2Answers: 14

    Hi rubinjo13, maybe this

      "pageLength": 25
    

    Shay

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓
              $('#table_id').DataTable( {
                    "pageLength": 25,               
                    "columnDefs": [
                       {
     ....
    
  • rubinjo13rubinjo13 Posts: 4Questions: 3Answers: 0

    Thanks! that works!

This discussion has been closed.