작성
·
329
0
<ul>
<li>
<a th:href="@{/list(searchType=${param.searchType}, keyword=${param.keyword}, page=${userList.getNumber() - 1})}">
<i class="fas fa-angle-double-left"></i>
</a>
</li>
<li th:each="i : ${#numbers.sequence(0, userList.getTotalPages() - 1 )}">
<a th:href="@{/list(searchType=${param.searchType}, keyword=${param.keywrod}, page=${i})}"
th:classappend="${i == (userList.getNumber() + 1) ? 'text-blue-600 bg-blue-50 border-blue-300' : ''}" th:text="${i + 1}">1</a>
</li>
<li>
<a th:href="@{/list(searchType=${param.searchKeyword}, keyword=${param.keyword}, page=${userList.getNumber() + 1})}">
<i class="fas fa-chevron-right"></i>
</a>
</li>
<li>
<a th:href="@{/list(searchType=${param.searchType}, keyword=${param.keyword}, page=${userList.getNumber() + 1})}">
<i class="fas fa-angle-double-right"></i>
</a>
</li>
</ul>
네 감사합니다.
페이징에 0부터 시작되는게 눈에 엄청 거슬려서 한번 찾아보겠습니다.^^
감사합니다.