You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tree field is waiting for object
e.g. state = { tree: { "module": "first-root", "children": [somechildren] } }
but what if I need 1+n roots?
I've tried to create tree without first module > state = { tree: {"children": [somechildren] } }
and in the renderNode function added if (!node.module) { return null; }
renders fine, but now draggable element has padding(shifted), because root doesn't contain node.
Need structure example: state = { tree: [ { "module": "first-root", "children": [somechildren]}, { "module": "second-root", "children":[somechildren]}, etc. ]}
The text was updated successfully, but these errors were encountered:
Frit
changed the title
How to create tree with 2+n roots?
How to create tree with 1+n roots?
Nov 2, 2016
tree
field is waiting for objecte.g.
state = { tree: { "module": "first-root", "children": [somechildren] } }
but what if I need 1+n roots?
I've tried to create tree without first module >
state = { tree: {"children": [somechildren] } }
and in the renderNode function added
if (!node.module) { return null; }
renders fine, but now draggable element has padding(shifted), because root doesn't contain node.
Need structure example:
state = { tree: [ { "module": "first-root", "children": [somechildren]}, { "module": "second-root", "children":[somechildren]}, etc. ]}
The text was updated successfully, but these errors were encountered: