mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Definitions for react-paginate 4.3.
This commit is contained in:
Vendored
+10
-2
@@ -1,6 +1,9 @@
|
||||
// Type definitions for react-paginate 4.2
|
||||
// Type definitions for react-paginate 4.3
|
||||
// Project: https://github.com/AdeleD/react-paginate
|
||||
// Definitions by: Simon Hartcher <https://github.com/deevus>, Wouter Hardeman <https://github.com/wouterhardeman>, pegel03 <https://github.com/pegel03>
|
||||
// Definitions by: Simon Hartcher <https://github.com/deevus>
|
||||
// Wouter Hardeman <https://github.com/wouterhardeman>
|
||||
// pegel03 <https://github.com/pegel03>
|
||||
// Simon Archer <https://github.com/archy-bold>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -111,6 +114,11 @@ interface ReactPaginateProps {
|
||||
* The method is called to generate the href attribute value on tag a of each page element.
|
||||
*/
|
||||
hrefBuilder?(pageIndex: number): void;
|
||||
|
||||
/**
|
||||
* Extra context to add to the aria-label HTML attribute.
|
||||
*/
|
||||
extraAriaContext?: string;
|
||||
}
|
||||
|
||||
declare const ReactPaginate: React.ComponentClass<ReactPaginateProps>;
|
||||
|
||||
@@ -26,6 +26,7 @@ class Test extends React.Component<{}, {}> {
|
||||
nextLinkClassName={'next-a'}
|
||||
disabledClassName={'disabled'}
|
||||
hrefBuilder={(pageIndex: number) => null}
|
||||
extraAriaContext={'aria'}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user