var-dump
var-dump copied to clipboard
Feature request - Add fold/unfold
Hello,
Nice would be the following functionality:
Fold and unfold objects, arrays in the UI to get better overview.
Thanks for your suggestion. The component in charge of render that is chevere/var-dump, I've moved the issue there.
Ref. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
I've made significative progress in this request. Here's my hide/show thing:
This stuff is 100% HTML based, zero JS required. Also it docks on the left for better consistency.
https://github.com/chevere/var-dump/assets/20590102/595b6265-17ac-4574-a8e5-f04bd807bd0e
Looks great. Nice work so far.
Perhaps it would be a useful addition if the entries were automatically collapsed from the third level onwards. In my opinion, this would considerably simplify navigation in large amounts of data.
Sure the entries will be collapsed by default.
🎉 Folding is now included in the 1.1 branch.