hightable
Version:
A dynamic windowed scrolling table component for react
18 lines (17 loc) • 1.27 kB
TypeScript
import type { DataFrame } from '../../helpers/dataframe/index.js';
import type { WrapperProps } from './Wrapper.js';
type Props = {
data: DataFrame;
maxRowNumber?: number;
onError?: (error: unknown) => void;
} & WrapperProps;
/**
* Render a table with streaming rows on demand from a DataFrame.
*
* orderBy: the order used to fetch the rows. If set, the component is controlled, and the property cannot be unset (undefined) later. If undefined, the component is uncontrolled (internal state). If the data cannot be sorted, it's ignored.
* onOrderByChange: the callback to call when the order changes. If undefined, the component order is read-only if controlled (orderBy is set), or disabled if not (or if the data cannot be sorted).
* selection: the selected rows and the anchor row. If set, the component is controlled, and the property cannot be unset (undefined) later. If undefined, the component is uncontrolled (internal state).
* onSelectionChange: the callback to call when the selection changes. If undefined, the component selection is read-only if controlled (selection is set), or disabled if not.
*/
export default function HighTable({ data, maxRowNumber, onError, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
export {};