UNPKG

mod-arch-shared

Version:

Shared UI components and utilities for modular architecture micro-frontend projects

17 lines 837 B
import { ThProps } from '@patternfly/react-table'; export type GetColumnSort = (columnIndex: number) => ThProps['sort']; export type SortableData<T> = Pick<ThProps, 'hasRightBorder' | 'isStickyColumn' | 'stickyMinWidth' | 'stickyLeftOffset' | 'modifier' | 'width' | 'info' | 'visibility' | 'className'> & { label: string; field: string; colSpan?: number; rowSpan?: number; /** * Set to false to disable sort. * Set to true to handle string and number fields automatically (everything else is equal). * Pass a function that will get the two results and what field needs to be matched. * Assume ASC -- the result will be inverted internally if needed. */ sortable: boolean | ((a: T, b: T, keyField: string) => number); style?: React.CSSProperties; }; //# sourceMappingURL=types.d.ts.map