- A new prop
hrefBuilder
has been added. It allows to add customhref
attributes on<a>
tags of the component. - Packages
react
andreact-addons-create-fragment
are now dependencies (see package.json).
-
Some variable have been renamed:
clickCallback
->onPageChange
initialSelected
->initialPage
forceSelected
->forcePage
pageNum
->pageCount
-
onClick
events have been moved on<a>
tags (previously on<li>
s).
clickCallback
(onPageChange
) isn't called during initialization anymore.
HTML Structure:
<ul class="pagination">
<li class="disabled"><a href="#"><span>«</span></a></li>
<li class="active"><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="#"><span>»</span></a></li>
</ul>
HTML Structure:
<ul>
<li class="disabled"><a href="#"><span>«</span></a></li>
<li>
<ul>
<li class="active"><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>
</ul>
</li>
<li><a href="#"><span>»</span></a></li>
</ul>