@atlaskit/table-tree
Version:
A table tree is an expandable table for showing nested hierarchies of information.
11 lines (10 loc) • 452 B
TypeScript
export type ColumnWidth = string | number;
/**
*
* Context provider which maintains the column widths and access methods for use in descendent table cells
* Enables composed table-tree implementations to e.g. set width on header cells only
*/
export declare const TableTreeContext: import('react').Context<{
setColumnWidth: (columnIndex: number, width: ColumnWidth) => void;
getColumnWidth: (columnIndex: number) => ColumnWidth | null;
}>;