diff --git a/__tests__/demo/demo-components/index.js b/__tests__/demo/demo-components/index.js index 4d14aa85..5d82dc66 100644 --- a/__tests__/demo/demo-components/index.js +++ b/__tests__/demo/demo-components/index.js @@ -1154,33 +1154,27 @@ const TREE_COLUMNS = [ } ]; export function TreeData() { - const words = ['Paper', 'Rock', 'Scissors']; - - const rawData = []; - for (let i = 0; i < 10; i++) { - rawData.push({ id: i, word: words[i % words.length] }); - } - - const columns = [ - { title: 'Id', field: 'id' }, - { title: 'Word', field: 'word' } - ]; + const [path, setPath] = useState(); + const myTableRef = useRef(null); return ( - rows.find((a) => a.id === row.parentId)} - data={[ - ...rawData, - { id: 11, word: 'test', parentId: 0 }, - { id: 12, word: 'test', parentId: 1 } - ]} - columns={columns} - options={{ - selection: true - }} - /> + + rows.find((a) => a.id === row.parentId)} + onRowClick={(e, rowData) => { + setPath(rowData.tableData.path); + myTableRef.current.onTreeExpandChanged( + rowData.tableData.path, + rowData + ); + }} + /> +
{JSON.stringify(path)}
+
); } - export function TableWithSummary() { return (

DetailPanelRemounting

+ {/*

Switcher

@@ -90,8 +91,74 @@ root.render(

Custom Export

*/} +

Bulk Edit

+ +

Default Order Issue

+ +

Bulk Edit With Detail Panel

+ +

Hiding Columns

+ +

TestingNewActionHandlersProp

+ +

Editable Rows

+ +

One Detail Panel

+ +

Multiple Detail Panels

+ +

Editable

+ +

Frankenstein

+ +

Resizable Columns

+ +

Persistent Groupings

+ +

Persistent Groupings Same ID

+ +

Persistent Groupings unshared

+

Tree data

+

Table with Summary Row

+ +

+ Table with custom numbers of pages around current page in stepped + navigation +

+ +

Fixed Column with Row Edits

+ +

Remote Data Related

+
    +
  1. +

    + mbrn{' '} + + #1353 + +

    + +
  2. +
  3. +

    + mbrn{' '} + + #1941 + +

    + +
  4. +
  5. +

    + + #122 + +

    + +
  6. +
diff --git a/src/components/MTableHeader/index.js b/src/components/MTableHeader/index.js index dffa4979..bc291090 100644 --- a/src/components/MTableHeader/index.js +++ b/src/components/MTableHeader/index.js @@ -342,7 +342,6 @@ export function MTableHeader({ { ...props, options }, props.treeDataMaxLevel ); - console.log(props); return (