How to use the react-table/lib/hoc/treeTable function in react-table

To help you get started, we’ve selected a few react-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github technekes / cast-ui / src / Table / index.ts View on Github external
import ReactTable from 'react-table';
import treeTableHOC from 'react-table/lib/hoc/treeTable';
import selectTableHOC from 'react-table/lib/hoc/selectTable';

import { Table, Props as TableProps } from './Table.component';

const TreeTable = treeTableHOC(ReactTable);
const SelectTable = selectTableHOC(ReactTable);
const SelectTreeTable = selectTableHOC(treeTableHOC(ReactTable));

export { TreeTable, SelectTable, SelectTreeTable, Table, TableProps };
github technekes / cast-ui / src / Table / index.ts View on Github external
import ReactTable from 'react-table';
import treeTableHOC from 'react-table/lib/hoc/treeTable';
import selectTableHOC from 'react-table/lib/hoc/selectTable';

import { Table, Props as TableProps } from './Table.component';

const TreeTable = treeTableHOC(ReactTable);
const SelectTable = selectTableHOC(ReactTable);
const SelectTreeTable = selectTableHOC(treeTableHOC(ReactTable));

export { TreeTable, SelectTable, SelectTreeTable, Table, TableProps };