Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double click for expansion #43

Open
developerworks opened this issue Mar 20, 2017 · 1 comment
Open

Double click for expansion #43

developerworks opened this issue Mar 20, 2017 · 1 comment

Comments

@developerworks
Copy link

My tree folder node is a link which could be clickable for display views, is there have a configurable methods make folder expand subtree with double click ?

@roymoran
Copy link

roymoran commented Jan 10, 2018

@developerworks the best way I found to accomplish this at the moment is to pass nodeLabel wrapped in a JSX element that includes an event handler. Replace onClick with an event handler that is fired on double click.

nodeLabel={<span onClick={this.handleNodeSelect}>"Your node text"</span>}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants