Pagination responsive

Pagination responsive

paladin2005paladin2005 Posts: 2Questions: 1Answers: 1

Hi... There is any way to convert from full_numbers pagination to simple pagination when displaying in mobile (bootstrap xs size)?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    It isn't possible to dynamically change the pagination type, however, in this case, what you could do is use:

    div.dataTables_paginate span {
      display: none;
    }
    

    In a responsive CSS block.

    Allan

  • paladin2005paladin2005 Posts: 2Questions: 1Answers: 1
    edited October 2014 Answer ✓

    I got it. If someone want it:

    @media screen and (max-width: 767px) {
        li.paginate_button.previous {
            display: inline;
        }
    
        li.paginate_button.next {
            display: inline;
        }
    
        li.paginate_button {
            display: none;
        }
    }
    
This discussion has been closed.