awendland / angular-json-tree Goto Github PK
View Code? Open in Web Editor NEWAngular directive for displaying a JSON object in an expandable tree structure
License: Other
Angular directive for displaying a JSON object in an expandable tree structure
License: Other
The JOSN Tree will populate with search-box
The JOSN Tree will populate with search-box
On key-up event of search-box the search text will be highlighted from tree
JSON tree without any search box
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!
When downloading angular-json-tree it also downloads angular.
It shouldn;t download angular by default. Therefore angular should be defined as a peer dependency.
Please look here for an example https://github.com/angular-ui/ui-router/blob/master/package.json#L68
I installed this repo using bower in my project and I use gulp/wiredep to inject the bower dependencies into my index.html
file. I found the dependency angular-json-tree
does not get injected. I guess this repo may have some problem with its bower settings. Could the author please check into this issue?
Link to the wiredep page: https://github.com/taptapship/wiredep:
A Bower package may not properly list its dependencies in its bower.json file.
A Bower package may not specify a main property in its bower.json file.
Any plan to support angular 2/4?
the project README has a broken link: http://blog.alexwendland.com/angular-json-tree/
when link is clicked, browser loads a working example of page using the plugin.
when link is clicked, i see this:
Page Not found
Looks like you've followed a broken link or entered a URL that doesn't exist on this site.
Back to our site
trying to learn how to use this plugin.
How do i change the root "object" initially displayed in the tree. I mean by default it displays "Object". Is it not possible to display some other text ?
First of all, really nice work!!!
I am working on having a toggle between the code view and the tree view of a JSON object. So when the user clicks to view the tree mode I show the JSON using the package and when the user clicks to view the code mode again I hide the tree view but I notice that the object has an attribute added to the children which is
$$hashKey:"object:695". the number changes depending on the child.
The following is the normal JSON I have
{ "second": "good night", "third": [ 1, "two", 3, { "child": true }, { "parent": true } ], "first": "bye" }
and when I show the tree mode and go back to the code mode I get the following object
{ "second": "good night", "third": [ 1, "two", 3, { $$hashKey:"object:695", "child": true }, { $$hashKey:"object:696", "parent": true } ], "first": "bye" }
Angular 1.5.5
If I insert the minified file (build/angular-json-tree.min.js
), everything is fine.
I got the "Module 'angular-json-tree' is not available!" when I insert the build/angular-json-tree.js
file
Any thoughts on having the start-expanded change dynamically on a button click or toggle? I am seeing if I can get something that working. Just curious if this feature has been thought about or partially implemented at all.
It appears that this directive currently does not respond to object
changes which minimizes its utility.
It appears that this module does not work within a controller using the ControllerAs syntax correct? The directive simply does not seem to bind to an object with the vm.
We need a property to expand and collapse all nodes. For example add an attribute called expansionState that has these values:
hi,
I'm looking forward to find a way to generate the Xpath of each Node as an attribute in this Directive. can you please help me with this:
var data = { something: {
"array": [
1,
2,
3
],
"boolean": true,
"null": null,
"number": 123,
"object": {
"a": "b",
"c": "d",
"e": "f"
},
"string": "Hello World"
}
};
var desiredPath = "something.object.a" //-> only keys matter.
and where can i use it as an attribute? on ul.branch-value or span.leaf-value?
thanks,
regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.