Skip to content

Access individual nodes via refs #169

Open
@wildemat

Description

@wildemat

Thank you for taking the time to report an issue with react-d3-tree!

Feel free to delete any questions that do not apply.

Are you reporting a bug, or opening a feature request?

feature request

What is the actual behavior/output?

Clicking on a node exposes the nodeData object .

What is the behavior/output you expect?

I also want to access the Node (preferably the actual node, not the label) as a DOMElement, to get properties like its position.
For example, when giving a node it's uuid, can you also give it that value as the ref? Within the click event I can get the nodeData, and thus the id. It'd be nice to do this.refs[uuid].

What version of react-d3-tree are you using?

latest

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions