Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts

raw
1 /// <reference types="react" />
2 import { PaginationToggleTemplateProps } from './ToggleTemplate';
3 import { PerPageOptions, OnPerPageSelect } from './Pagination';
4 export interface PaginationOptionsMenuProps extends React.HTMLProps<HTMLDivElement> {
5 /** Custom class name added to the pagination options menu. */
6 className?: string;
7 /** Id added to the title of the pagination options menu. */
8 widgetId?: string;
9 /** Flag indicating if pagination options menu is disabled. */
10 isDisabled?: boolean;
11 /** Menu will open up or open down from the options menu toggle. */
12 dropDirection?: 'up' | 'down';
13 /** Minimum width of the pagination options menu. If set to "trigger", the minimum width will be set to the toggle width. */
14 minWidth?: string | 'trigger';
15 /** Array of titles and values which will be the options on the options menu dropdown. */
16 perPageOptions?: PerPageOptions[];
17 /** The title of the pagination options menu. */
18 itemsPerPageTitle?: string;
19 /** Current page number. */
20 page?: number;
21 /** The suffix to be displayed after each option on the options menu dropdown. */
22 perPageSuffix?: string;
23 /** The type or title of the items being paginated. */
24 itemsTitle?: string;
25 /** Accessible label for the options toggle. */
26 optionsToggleAriaLabel?: string;
27 /** The total number of items being paginated. */
28 itemCount?: number;
29 /** The first index of the items being paginated. */
30 firstIndex?: number;
31 /** The last index of the items being paginated. */
32 lastIndex?: number;
33 /** Flag to indicate whether to show last full page of results when user selects perPage
34 * value that is greater than remaining rows.
35 */
36 isLastFullPageShown?: boolean;
37 /** The number of items to be displayed per page. */
38 perPage?: number;
39 /** The number of the last page. */
40 lastPage?: number;
41 /** This will be shown in pagination toggle span. You can use firstIndex, lastIndex,
42 * itemCount, and/or itemsTitle props.
43 */
44 toggleTemplate: ((props: PaginationToggleTemplateProps) => React.ReactElement<any>) | string;
45 /** Function called when user selects number of items per page. */
46 onPerPageSelect?: OnPerPageSelect;
47 /** Label for the English word "of". */
48 ofWord?: string;
49 /** React ref for the container to append the options menu to. This is a static ref provided by the main pagination component. */
50 containerRef?: React.RefObject<HTMLDivElement | null>;
51 /** @beta The container to append the pagination options menu to. Overrides the containerRef prop. */
52 appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
53 /** Flag indicating if scroll on focus of the first menu item should occur. */
54 shouldPreventScrollOnItemFocus?: boolean;
55 /** Time in ms to wait before firing the toggles' focus event. Defaults to 0 */
56 focusTimeoutDelay?: number;
57 }
58 export declare const PaginationOptionsMenu: React.FunctionComponent<PaginationOptionsMenuProps>;
59 //# sourceMappingURL=PaginationOptionsMenu.d.ts.map