UNPKG

@ansible/ansible-ui-framework

Version:

A framework for building applications using PatternFly.

8 lines (7 loc) 731 B
import { ReactNode } from 'react'; import { IPageAction } from '../PageActions/PageAction'; import { PageTableProps } from './PageTable'; import { ITableColumn } from './PageTableColumn'; export type PageTableListProps<T extends object> = PageTableProps<T>; export declare function PageTableList<T extends object>(props: PageTableListProps<T>): import("react/jsx-runtime").JSX.Element; export declare function useColumnsToDataList<T extends object>(tableColumns: ITableColumn<T>[], keyFn: (item: T) => string | number, isSelected?: (item: T) => boolean, selectItem?: (item: T) => void, unselectItem?: (item: T) => void, rowActions?: IPageAction<T>[], defaultCardSubtitle?: ReactNode, showSelect?: boolean): (item: T) => ReactNode;