Change pagination style based on viewport

Change pagination style based on viewport

mikepoolemikepoole Posts: 11Questions: 5Answers: 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: 61,665Questions: 1Answers: 10,096 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: 11Questions: 5Answers: 0

    Thanks Allan, really appreciate it. Mike

This discussion has been closed.