@appbuckets/react-ui
Version:
Just Another React UI Framework
48 lines (47 loc) • 1.58 kB
TypeScript
import { VariableSizeListProps } from 'react-window';
import { StrictRxTableProps } from '../RxTable';
import { ButtonProps } from '../Button';
export declare type PickedVariableSizeListProps = Pick<
VariableSizeListProps,
PickerVariableSizeListProps
>;
declare type PickerVariableSizeListProps =
| 'direction'
| 'itemKey'
| 'overscanCount'
| 'onItemsRendered'
| 'onScroll'
| 'useIsScrolling';
export interface VirtualizedTableProps<Data>
extends StrictVirtualizedTableProps<Data> {
[key: string]: any;
}
export interface StrictVirtualizedTableProps<Data>
extends StrictRxTableProps<Data>,
Partial<PickedVariableSizeListProps> {
/** Compress Spacing between cells and rows */
compressed?: boolean;
/** Filter row height */
filterRowHeight?: number;
/** Footer row height */
footerRowHeight?: number;
/** Table header height */
headerHeight?: number;
/** Table Height */
height?: number;
/** Set the maximum height */
maximumHeight?: number;
/** Set the minimum height */
minimumHeight?: number;
/** Row height, a fixed number or a get function, received the index */
rowHeight: number | ((index: number) => number);
/** Extra props used for ScrollOnTob Button */
scrollOnTopButtonProps?: Partial<ButtonProps>;
/** Set the scroll offset after that ScrollOnTop component will be visible, default is 2 x TableBodyHeight */
scrollOnTopOffsetVisibility?: number;
/** Set if must subtract some pixel from height */
subtractToHeight?: number;
/** Use the ScrollOnTop Button */
useScrollOnTop?: boolean;
}
export {};