Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsible XML Nodes #17

Open
nilshoerrmann opened this issue Sep 1, 2011 · 5 comments
Open

Collapsible XML Nodes #17

nilshoerrmann opened this issue Sep 1, 2011 · 5 comments

Comments

@nilshoerrmann
Copy link
Contributor

It would be nice if this devkit added an option to collapse XML nodes. It should be possible to hide and show child nodes using .nextUntil().

@kanduvisla
Copy link

I was just thinking the same thing today! I spend much time every time searching for the correct node, and with a lot of data this can sometimes be a bit tricky.

It would be nice if the nodes were collapsed by default or something, or collapse all/expand all buttons.

@brendo
Copy link
Member

brendo commented Nov 1, 2011

Neat idea, the concern of course is ensuring it works with large(r) datasets than usual, if either of you would like to implement it as a proof of concept we can test it with varying XML sizes to see how viable it is :)

@DavidOliver
Copy link
Member

Would the collapsed status persist between page loads? Would be immensely helpful if so.

@nickdunn
Copy link
Contributor

The old devkits used to use JS to do the syntax highlighting and it made them really slow. So if any extra JS is added to this page it's got to perform really well.

This would be a great feature. I'm always scrolling down past /data/params to see my data sources, so being able to collapse this across refreshes would be neat.

@DavidOliver
Copy link
Member

What about containing each node's content in a containing element, and using JavaScript only to add/remove a class or data-attribute to it, with CSS handling whether it's shown or hidden? CSS transitions could be used to smoothly fold up or down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants