@atlaskit/dynamic-table
Version:
A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.
21 lines (20 loc) • 902 B
TypeScript
import React from 'react';
import { type DragStart, type DropResult } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration';
import type { WithSortedPageRowsProps } from '../../hoc/with-sorted-page-rows';
import { type HeadType, type RankEnd, type RankStart } from '../../types';
export interface RankableBodyProps extends WithSortedPageRowsProps {
highlightedRowIndex?: number | number[];
onRankStart: (rankStart: RankStart) => void;
onRankEnd: (rankEnd: RankEnd) => void;
isFixedSize: boolean;
isRanking: boolean;
isRankingDisabled: boolean;
head?: HeadType;
testId?: string;
forwardedRef?: React.Ref<HTMLTableSectionElement>;
}
export declare class RankableBody extends React.Component<RankableBodyProps, {}> {
onBeforeDragStart: (dragStart: DragStart) => void;
onDragEnd: (result: DropResult) => void;
render(): React.JSX.Element;
}