Merge pull request #32483 from SPWizard01/master

[react-paginate] add missing breakLinkClassName property
This commit is contained in:
Benjamin Lichtman
2019-01-25 09:39:51 -08:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for react-paginate 6.0
// Type definitions for react-paginate 6.2
// Project: https://github.com/AdeleD/react-paginate
// Definitions by: Simon Hartcher <https://github.com/deevus>
// Wouter Hardeman <https://github.com/wouterhardeman>
@@ -6,6 +6,7 @@
// Simon Archer <https://github.com/archy-bold>
// Yasunori Ohoka <https://github.com/yasupeke>
// Shingo Sato <https://github.com/sugarshin>
// SPWizard01 <https://github.com/SPWizard01>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -47,6 +48,11 @@ interface ReactPaginateProps {
*/
breakClassName?: string;
/**
* The classname on tag `a` of the ellipsis element.
*/
breakLinkClassName?: string;
/**
* The method to call when a page is clicked. Exposes the current page object as an argument.
*/
@@ -12,6 +12,7 @@ class Test extends React.Component {
nextLabel={'next'}
breakLabel={'break-me'}
breakClassName={'break-class'}
breakLinkClassName={'break-link'}
onPageChange={(selectedItem: {selected: number}) => null}
initialPage={2}
forcePage={3}