Fix info text if pagination is off

Fix info text if pagination is off

dleedlee Posts: 3Questions: 0Answers: 0
edited September 2009 in General
Right now, the info text seems to show text in pagination mode even when pagination is off: "Showing 1 to 57 of 57 entries."

DataTables should be smart enough to detect when pagination is off and display "Showing 57 entries" instead.

Replies

  • allanallan Posts: 61,715Questions: 1Answers: 10,108 Site admin
    Hi dlee,

    It's a fair point and this can be done using the language options DataTables provides :-). The default is "Showing _START_ to _END_ of _TOTAL_ entries". So you could change it to "Showing _TOTAL_ entries" to achieve what you are looking for: http://datatables.net/usage/i18n#oLanguage.sInfo

    Regards,
    Allan
This discussion has been closed.