Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change look and feel of g:paginate

I'm using the g:paginate tag to create pagination links for my list page. I'd like to use the bootstrap pagination unordered list for the UI of the tag. How can I add that?

The bootstrap pagination tag works like this:

<ul class="pagination">
  <li><a href="#">&laquo;</a></li>
  <li><a href="#">1</a></li>
  <li><a href="#">2</a></li>
  <li><a href="#">3</a></li>
  <li><a href="#">4</a></li>
  <li><a href="#">5</a></li>
  <li><a href="#">&raquo;</a></li>
</ul>

I'm using the g:paginate tag like this

<g:paginate controller="mycontroller" action="list" total="${total}" />
like image 526
Anthony Avatar asked Sep 29 '14 08:09

Anthony


1 Answers

You can use this tagLib for grails

https://github.com/Aasiz/bootspaginate

like image 198
Aasiz Avatar answered Oct 01 '22 08:10

Aasiz