Replies: 6 comments 1 reply
-
| Using React Material TreeItem for Node, getting an error when selecting the node: Sample Code: <Tree treeWalker={treeWalker} itemSize={30} height={600}> {Node} </Tree>Node Component: const Node = ({data,data: {isLeaf,nestingLevel,name}, isOpen, style, toggle}) => ( <div style={{ ...style, alignItems: 'center', display: 'flex', marginLeft: nestingLevel * 40 + (isLeaf ? 48 : 0), }} > { !isLeaf && ( <div onClick={toggle}> {!isOpen ? <Expandcon/>:<CollapseIcon/>} </div> ) } <div> <TreeItem nodeId={data.id} label={name}> </TreeItem> </div> </div>TreeItem is the custom Material UI. Stuck with it think somthing to do with forwarding the ref,but couldnt find a way around. Can you help. |
Beta Was this translation helpful? Give feedback.
-
| @kunalnhes, unfortunately, MaterialUI tree cannot work with the Regarding your question: since |
Beta Was this translation helpful? Give feedback.
-
| @ramHruday, you can track the current scroll via the |
Beta Was this translation helpful? Give feedback.
-
| Thanks , @Lodin , My use case is more of scrolling in child-level also. |
Beta Was this translation helpful? Give feedback.
-
| @ramHruday, not sure I understand your case. Could you explain it with more details? |
Beta Was this translation helpful? Give feedback.
-
| @Lodin My use case: a contact list (hierarchy structure: company -> department -> contact)
I saw this story book example. It shows solution for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am having trouble in implementing infinite scroll in a tree,
How do I approach this using vtree
Beta Was this translation helpful? Give feedback.
All reactions