Skip to content

JsonTree.js v0.7.0 - Custom value rendering! New options! Improvements!

Choose a tag to compare

@williamtroup williamtroup released this 14 Mar 18:16
· 784 commits to main since this release
711ece2

New Features:

  • Added custom value rendering support! This allows custom triggers to be used to render the values for specific types how you choose!

Binding Options:

  • Added a new binding option called "ignoreUnknownValues", which states if UNKNOWN values should be ignored and not rendered (defaults to false).

Binding Options - Custom Triggers:

  • Added a new binding option custom trigger called "onBooleanRender", which states an event that should be triggered when a boolean value is rendered.
  • Added a new binding option custom trigger called "onDecimalRender", which states an event that should be triggered when a decimal value is rendered.
  • Added a new binding option custom trigger called "onNumberRender", which states an event that should be triggered when a number value is rendered.
  • Added a new binding option custom trigger called "onStringRender", which states an event that should be triggered when a string value is rendered.
  • Added a new binding option custom trigger called "onDateRender", which states an event that should be triggered when a date value is rendered.
  • Added a new binding option custom trigger called "onFunctionRender", which states an event that should be triggered when a function value is rendered.
  • Added a new binding option custom trigger called "onNullRender", which states an event that should be triggered when a null value is rendered.
  • Added a new binding option custom trigger called "onUnknownRender", which states an event that should be triggered when an unknown value is rendered.

Fixes & Improvements:

  • Internal code cleanups to make things easier to read.
  • Fixed the CSS class "unknown" having a hover effect.