Comments (3)
+1, would be wonderful to programmatically control what's expanded and what isn't
from renderjson.
Yes, I was really looking for a ElementWrapper.expandAll() function.
from renderjson.
Here's a wacky method to open the next layer of all of the trees on the page:
document.querySelectorAll('span:not([class]').forEach(function (el) {
var a = (((el.children[0] || {}).children|| [])[0] || {});
(a.click || function(){} ).bind(a)();
})
In english:
Get the first child of the first child of the span elements without class attributes, and click them all.
Be careful though, If this matches some similar structure on your page, you might click something you don't want to click.
from renderjson.
Related Issues (20)
- Copy JSON after it has rendered HOT 2
- show_to_level overrides set_max_string_length HOT 2
- Issue on IE11 HOT 2
- truncation for too many items HOT 2
- Redefining `window` gives problems in IE9 HOT 1
- Doesn't work on vuejs HOT 3
- Allow custom indent depth HOT 1
- Truncated string is multiline HOT 1
- switch to typescript HOT 1
- Feature Request: Clickable url strings HOT 1
- Auto-unfold for small number of items
- Feature request - disclosures on the left HOT 1
- Feature Request: For ReferenceId to an id field in the JSON. Make the referenceID field clickable to auto navigate to the element. HOT 1
- Clickable links
- Feature request: ability to remove/change double-quotes from keys
- Feature request: ability to toggle folding by pressing on the key
- Feature request: ability to move folding icons to beginning of the line
- Bug? Folding multiline text
- Feature Request - Add Setter For Indentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from renderjson.