Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable to set default class attribute to page item (inner element). #928

Closed
yoshikawaa opened this issue Oct 25, 2019 · 0 comments
Closed

Comments

@yoshikawaa
Copy link
Contributor

yoshikawaa commented Oct 25, 2019

Description

https://github.com/terasolunaorg/terasoluna-gfw/blob/master/terasoluna-gfw-common-libraries/terasoluna-gfw-web-jsp/src/main/java/org/terasoluna/gfw/web/pagination/PaginationTag.java#L222-L238

t:pagination tag not support to set default class attribute to page item (inner element).

Setting attributes that can set class for page items are follows:

  • activeClass : current item (actually not enabled item)
  • disabledClass : disabled item

I cannot implement the following pattern without JavaScript.
https://picturepan2.github.io/spectre/components/pagination.html

<ul class="pagination">
  <li class="page-item disabled">
    <a href="#" tabindex="-1">Previous</a>
  </li>
  <li class="page-item active">
    <a href="#">1</a>
  </li>
  <li class="page-item"> <!-- cannot set "page-item" class -->
    <a href="#">2</a>
  </li>

Possible Solutions

(Please write ideas or candidates of solutions for the problem if you have)

Affects Version/s

  • 5.5.1.RELEASE

Issue Links

  • #XXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants