React-sortable-tree: How to change title of a node dynamically

Created on 10 Mar 2017  路  7Comments  路  Source: frontend-collective/react-sortable-tree

Hello,

I would like to use an input field for title so that user can change the title if required. Adding input field is easy but how to save the value?

question

Most helpful comment

@thewebsitedev so can you show your code,i really want to know how to save the value when i use an input field for title..thanks!

All 7 comments

Add an onChange attribute to that input.

Yes, I have done that but then how to save that value to that specific node?

Got it to work. Thanks!

@thewebsitedev When you have an answer to your question, it's helpful if you share the code you used for others to learn from!

@AaronHarris I know but I actually modified react-sortable-tree quite a bit and so it might not work for other users. I will try to provide an example when I get some time.

@thewebsitedev so can you show your code,i really want to know how to save the value when i use an input field for title..thanks!

I have the same issue. Can you please mention how you solved it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonatanGarciaClavo picture JonatanGarciaClavo  路  3Comments

mcolburn picture mcolburn  路  4Comments

robhadfield picture robhadfield  路  3Comments

theonelucas picture theonelucas  路  3Comments

anushkadoyan picture anushkadoyan  路  4Comments