@atlaskit/table-tree
Version:
A table tree is an expandable table for showing nested hierarchies of information.
10 lines • 364 B
JavaScript
import { createContext } from 'react';
/**
*
* 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 const TableTreeContext = /*#__PURE__*/createContext({
setColumnWidth: () => {},
getColumnWidth: () => null
});