symphonycms / debugdevkit

Debug DevKit for Symphony CMS
http://symphonyextensions.com/extensions/debugdevkit/
Other
8 stars 14 forks source link

Collapsible XML Nodes #17

Open nilshoerrmann opened 13 years ago

nilshoerrmann commented 13 years ago

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 commented 13 years ago

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 commented 12 years ago

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 commented 12 years ago

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

nickdunn commented 12 years ago

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 commented 12 years ago

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.