@ansible/ansible-ui-framework 2.4.534 → 2.4.535
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PerPageOptions } from '@patternfly/react-core';
|
1
2
|
import { CSSProperties } from 'react';
|
2
3
|
export type PagePaginationProps = {
|
3
4
|
itemCount?: number;
|
@@ -7,5 +8,6 @@ export type PagePaginationProps = {
|
|
7
8
|
setPerPage: (perPage: number) => void;
|
8
9
|
style?: CSSProperties;
|
9
10
|
topBorder?: boolean;
|
11
|
+
perPageOptions?: PerPageOptions[];
|
10
12
|
};
|
11
13
|
export declare function PagePagination(props: PagePaginationProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PerPageOptions } from '@patternfly/react-core';
|
1
2
|
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
2
3
|
import { IPageAction } from '../PageActions/PageAction';
|
3
4
|
import { PageTableViewType } from '../PageToolbar/PageTableViewType';
|
@@ -20,6 +21,7 @@ export type PageTableProps<T extends object> = {
|
|
20
21
|
perPage: number;
|
21
22
|
setPage: (page: number) => void;
|
22
23
|
setPerPage: (perPage: number) => void;
|
24
|
+
perPageOptions?: PerPageOptions[];
|
23
25
|
sort?: string;
|
24
26
|
setSort?: (sort: string) => void;
|
25
27
|
sortDirection?: 'asc' | 'desc';
|
@@ -49,6 +51,7 @@ export type PageTableProps<T extends object> = {
|
|
49
51
|
disableListView?: boolean;
|
50
52
|
disableCardView?: boolean;
|
51
53
|
defaultTableView?: PageTableViewType;
|
54
|
+
hideTable?: boolean;
|
52
55
|
disableBodyPadding?: boolean;
|
53
56
|
disablePagination?: boolean;
|
54
57
|
defaultSubtitle?: ReactNode;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PerPageOptions } from '@patternfly/react-core';
|
1
2
|
import React, { Dispatch, SetStateAction } from 'react';
|
2
3
|
import { IPageAction } from '../PageActions/PageAction';
|
3
4
|
import { PageTableViewType } from './PageTableViewType';
|
@@ -18,6 +19,7 @@ export type PageToolbarProps<T extends object> = {
|
|
18
19
|
perPage?: number;
|
19
20
|
setPage?: (page: number) => void;
|
20
21
|
setPerPage?: (perPage: number) => void;
|
22
|
+
perPageOptions?: PerPageOptions[];
|
21
23
|
isSelected?: (item: T) => boolean;
|
22
24
|
selectedItems?: T[];
|
23
25
|
selectItem?: (item: T) => void;
|