wix-incubator / angular-tree-control

Angular JS Tree
http://wix.github.io/angular-tree-control
MIT License
707 stars 276 forks source link

Inline editing of nodes #281

Open halshing opened 7 years ago

halshing commented 7 years ago

Is there a way in the directive to allow for nodes to become editable inline either via a button or clicking on the node itself?

The expected behavior would be a user clicks on the node text and it turns into an input box. When the user clicks out of the input box, the node text is updated with the user's value.

Thank you!

yoavaa commented 7 years ago

Should not be hard to do. You can use the item template to create this logic and update the node. Once the node is updated, the tree will be updated as well.

On Sep 6, 2017 22:11, "Hasan Shingieti" notifications@github.com wrote:

Is there a way in the directive to allow for nodes to become editable inline either via a button or clicking on the node itself?

The expected behavior would be a user clicks on the node text and it turns into an input box. When the user clicks out of the input box, the node text is updated with the user's value.

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wix/angular-tree-control/issues/281, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDlJ2yE1ZS2O3kKMKspy_eHU1aOUUTjks5sfu5hgaJpZM4PO1wS .

bhaweshkumar commented 4 years ago

any updates on how to do it? @halshing did you got any resolution?