Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Pagination/PaginationNavigation.d.ts

raw
1 import { Component } from 'react';
2 import { OnSetPage } from './Pagination';
3 import { PickOptional } from '../../helpers';
4 export interface PaginationNavigationProps extends React.HTMLProps<HTMLElement> {
5 /** Additional classes for the pagination navigation container. */
6 className?: string;
7 /** Accessible label for the input displaying the current page. */
8 currPageAriaLabel?: string;
9 /** The number of first page where pagination starts. */
10 firstPage?: number;
11 /** Flag indicating if the pagination is compact. */
12 isCompact?: boolean;
13 /** Flag indicating if the pagination is disabled. */
14 isDisabled?: boolean;
15 /** Total number of items. */
16 itemCount?: number;
17 /** The number of the last page. */
18 lastPage?: number;
19 /** Label for the English word "of". */
20 ofWord?: string;
21 /** The number of the current page. */
22 page: number;
23 /** The title of a page displayed beside the page number. */
24 pagesTitle?: string;
25 /** The title of a page displayed beside the page number (the plural form). */
26 pagesTitlePlural?: string;
27 /** Accessible label for the pagination component. */
28 paginationAriaLabel?: string;
29 /** Number of items per page. */
30 perPage?: number;
31 /** Accessible label for the button which moves to the first page. */
32 toFirstPageAriaLabel?: string;
33 /** Accessible label for the button which moves to the last page. */
34 toLastPageAriaLabel?: string;
35 /** Accessible label for the button which moves to the next page. */
36 toNextPageAriaLabel?: string;
37 /** Accessible label for the button which moves to the previous page. */
38 toPreviousPageAriaLabel?: string;
39 /** Function called when user clicks to navigate to first page. */
40 onFirstClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
41 /** Function called when user clicks to navigate to last page. */
42 onLastClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
43 /** Function called when user clicks to navigate to next page. */
44 onNextClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
45 /** Function called when user clicks to navigate to previous page. */
46 onPreviousClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
47 /** Function called when user inputs page number. */
48 onPageInput?: (event: React.KeyboardEvent<HTMLInputElement>, page: number) => void;
49 /** Function called when page is changed. */
50 onSetPage: OnSetPage;
51 }
52 export interface PaginationNavigationState {
53 userInputPage?: number | string;
54 }
55 declare class PaginationNavigation extends Component<PaginationNavigationProps, PaginationNavigationState> {
56 static displayName: string;
57 constructor(props: PaginationNavigationProps);
58 static defaultProps: PickOptional<PaginationNavigationProps>;
59 private static parseInteger;
60 private onChange;
61 private onKeyDown;
62 handleNewPage: (_evt: React.MouseEvent | React.KeyboardEvent | MouseEvent, newPage: number) => void;
63 componentDidUpdate(lastState: PaginationNavigationProps): void;
64 render(): import("react/jsx-runtime").JSX.Element;
65 }
66 export { PaginationNavigation };
67 //# sourceMappingURL=PaginationNavigation.d.ts.map