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="#">«</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="#">»</a></li>
</ul>
I'm using the g:paginate
tag like this
<g:paginate controller="mycontroller" action="list" total="${total}" />
You can use this tagLib for grails
https://github.com/Aasiz/bootspaginate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With