Change pagination style based on viewport

Change pagination style based on viewport

mikepoolemikepoole Posts: 6Questions: 3Answers: 0

I have a responsive table which I want to show the pagingType 'simple_numbers' when > 768px and 'full' when < 768px

Is this possible?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 43,525Questions: 1Answers: 5,695 Site admin
    Answer ✓

    Really good idea. At the moment, there isn't a built in way I'm afraid, but you could use a little CSS to do it since the text buttons have their own classes:

    @media screen and (max-width: 767px) {
      a.paginate_button.first,
      a.paginate_button.last {
        display: none;
      }
    }
    

    Allan

  • mikepoolemikepoole Posts: 6Questions: 3Answers: 0

    Thanks Allan, really appreciate it. Mike

Sign In or Register to comment.