Skip to content

Commit a75b07d

Browse files
committed
Update README.md
1 parent 4b3bfb8 commit a75b07d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,14 @@ public String list(ModelMap model, @Qualifier("foo") Pageable first, @Qualifier(
172172
![alt text](https://raw.githubusercontent.com/jpenren/thymeleaf-spring-data-dialect/master/doc/multiple-tables.png "Multiple tables")
173173

174174
By default SpringDataDialect search in the request for the attribute "page" or if one attribute of type org.springframework.data.domain.Page<?> exists. To use another model attribute, use sd:page-object="${attrName}"
175+
176+
To specify the pagination url use `sd:pagination-url` tag:
177+
```html
178+
<nav>
179+
<ul class="pagination" sd:pagination="pager" sd:pagination-url="@{/some-url}">
180+
<!-- Pagination created by SpringDataDialect, this content is just for mockup -->
181+
<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
182+
<li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
183+
</ul>
184+
</nav>
185+
```

0 commit comments

Comments
 (0)