Toggle a Boolean value

Sometimes it's handy to have simple way of toggling a Boolean value for instance when you want to switch some view mode. fx-toggleboolean makes as easy as it gets. Just specify the reference to the node.

Toggling a CSS class with fx-toggleboolean

In this example the toggle is used to switch some content by changing the CSS class.

Toggle with lazy-instance

When lazy-initializing (without explicit model) the 'toggle' will have an indetermined value initially and become 'true' with first toggle.