Skip to content

JsonTree.js v2.6.0 - Editing support! Lots of UI improvements and fixes!

Compare
Choose a tag to compare
@williamtroup williamtroup released this 13 Aug 18:39
· 572 commits to main since this release
463b8d7

New Features:

  • Added editing support! You can now edit property names and values while clearing the data will remove the item.

Binding Options:

  • Added a new binding option called "allowEditing" (defaults to true), which states if property name/value editing is allowed.

Binding Options - Custom Triggers:

  • When "onValueClick" is set, all HEX/RGB colors are now passed using a type of "color".

UI Improvements:

  • Strings that are RGB or RGBA colors are now shown as colors in the display (as with hex colors).
  • String HEX/RGB colors are now shown without the string quotes (if enabled).
  • Removed spacing around the fields and improved the margins.
  • The Array/Object contents opened/closed in the display are now remembered when switching between array pages (if turned on).

General Improvements:

  • Moved from ES2016 to ES2020.
  • Moved more code into the shared files.
  • When an ID is set for an element, it is removed when "destroy()" is called.
  • When an element is destroyed, if no classes are left on the element, the "class" attribute is now removed.