litejs / json-lite

Fast non-blocking JSON viewer for Chrome and Firefox
195 stars 16 forks source link

Feature: Show node size as collapse/expand button hint #50

Closed sabi0 closed 5 years ago

sabi0 commented 5 years ago

I rarely need to know the sizes of the nodes. And normally keep the option set to "never" to avoid clutter and distraction. Occasionally however it might be useful. And having to go to add-on options to enable it is bothersome.

Would it be possible to implement a new option for size display - "hint" - to have it show up as collapse/expand button hint on mouse hover? (via the 'title' attribute) I'd happily use this option then.

P.S. The "hover" option could then probably be deprecated.