Skip to content

Tree.js v0.3.0 - New option, public functions, and refreshing support!

Compare
Choose a tag to compare
@williamtroup williamtroup released this 22 Feb 11:53
· 4 commits to main since this release
f3d61ef

New Features:

  • Added full refreshing support via public functions and a new title bar button (off by default).

Binding Options:

  • Added a new binding option called "useDecreasingHeightsForBoxes", which states if decreasing heights should be used for the boxes (defaults to true).
  • Added a new binding option called "showRefreshButton", which states if the "Refresh" button should be shown (defaults to false).

Binding Options - Custom Triggers:

  • Added a new binding option custom trigger called "onRefresh", which states an event that should be triggered when a rendered element is refreshed.

Public Functions:

  • Added a new public function "moveToPreviousCategory()", which will move to the next category for a specific element and then refresh its UI.
  • Added a new public function "moveToNextCategory()", which will move to the previous category for a specific element and then refresh its UI.
  • Added a new public function "refresh()", which refreshes the UI for a specific element.
  • Added a new public function "refreshAll()", which will refresh all the rendered elements.

Configuration Options:

  • Added a new configuration option called "refreshButtonText", which states the text that should be shown for the "Refresh" button (defaults to "Refresh").