table info if no pagination

table info if no pagination

straetchstraetch Posts: 5Questions: 3Answers: 0

My table has no pagination. Table browsing is done using scrolling.
The table info shows e.g. "Showing 1 to 49 of 49 entries (filtered from 57 total entries)".
Since there is no pagination, all entries are on the same "page", so the first number 49 in the table info is redundant.
How can I set the table info to display "Showing 49 entries (filtered from 57 total entries)"?

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 2,997Questions: 87Answers: 421
    edited January 2023 Answer ✓

    Use this in your data table definition and modify it according to your wishes:

    language: {
            info: "Showing _START_ to _END_ of _TOTAL_ entries",
            infoFiltered: "(filtered from _MAX_ total entries)",
        },
    

    like this for example (in case you don't want to change "infoFiltered"):

    language: {
            info: "Showing _TOTAL_ entries"
        },
    
Sign In or Register to comment.