Skip to content

0.5.8: Conditionally Active Widgets

Compare
Choose a tag to compare
@mcaskill mcaskill released this 14 Jul 20:10
· 1107 commits to master since this release

Added support to the "active" widget option for callable or renderable strings to determine if the widget is active or not.

Examples:

  • { "active": "isPublished" }
  • { "active": "!isPublished" }
  • { "active": "{{ isPublished }}" }

The FormSidebarWidget can resolve conditions using the form's object.