awendland / angular-json-tree

Angular directive for displaying a JSON object in an expandable tree structure
Other
79 stars 41 forks source link

Editable value #54

Open NikolaSimovic opened 7 years ago

NikolaSimovic commented 7 years ago

Would it be too much work to ask if it is possible to create a tree where the values are editable? And to switch between editable states with an for example "editable" attribute?

By the way, great work!

facuxt commented 7 years ago

Replace jsontree.js with this code... it helps to edit "string"values, the values you edit would be in the object you sent as parameter of the directive. for example.<json-tree object="json.object>...

cant send attachment of JS file, so here is the zip... i dont have time to make this as a pull request... if anyone can do it it will be awesome, it also can be upgraded its functionality, but this at least helped me with my task... jsontree.js.zip

image