delete "Showing 1 to 1 of 1 entries"

delete "Showing 1 to 1 of 1 entries"

mbcl88mbcl88 Posts: 13Questions: 5Answers: 0

Hey,

i would like to completely hide this text from showing it below table, is that possible with some easy line?

ty

Answers

  • kthorngrenkthorngren Posts: 21,315Questions: 26Answers: 4,948
    edited December 2018

    Yes, you can use the dom option.

    Kevin

  • mbcl88mbcl88 Posts: 13Questions: 5Answers: 0

    can u give me some example pls?

  • mbcl88mbcl88 Posts: 13Questions: 5Answers: 0

    my current code:

    <script>
    $(document).ready(function() {
        $('#test').DataTable( {
         responsive: true,
       "columnDefs": [ {
       "targets": 4,
       "orderable": false
     } ],
       "language": {
                "url": "//cdn.datatables.net/plug-ins/1.10.19/i18n/Slovenian.json"
            },
         "paging": false,
         "order": [[ 0, "desc" ]],
         } );
    
    } );
    </script>
    
  • mbcl88mbcl88 Posts: 13Questions: 5Answers: 0

    i tried with:
    dom: '<"clear">lfrtp',

    but then filter input is getting bad possition...i want to stay in same place

    im using semantic ui styling

  • mbcl88mbcl88 Posts: 13Questions: 5Answers: 0

    did it with:
    "info": false,
    "paging": false,

    ty for help anyway

  • kthorngrenkthorngren Posts: 21,315Questions: 26Answers: 4,948

    Did you try with the Semantic dom option styling as shown here:
    https://datatables.net/reference/option/dom#Styling

    For example:
    http://live.datatables.net/jiqiquze/1

    Kevin

  • mbcl88mbcl88 Posts: 13Questions: 5Answers: 0

    it was easier for me with:
    "info": false,
    "paging": false,

    xD

This discussion has been closed.