UNPKG

@atlaskit/dynamic-table

Version:

A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.

22 lines (21 loc) 682 B
import React from 'react'; import { type HeadType, type RowCellType, type SortOrderType } from '../types'; interface TableHeadProps { head: HeadType; sortKey?: string; sortOrder?: SortOrderType; isFixedSize?: boolean; onSort: (item: RowCellType) => () => void; isRankable?: boolean; isRanking: boolean; testId?: string; } declare class TableHead extends React.Component<TableHeadProps, { activeSortButtonId: string | null; }> { constructor(props: TableHeadProps); UNSAFE_componentWillMount(): void; UNSAFE_componentWillReceiveProps(nextProps: TableHeadProps): void; render(): React.JSX.Element | null; } export default TableHead;