ctrl+k
Enter a search term above to see results...
Enter a search term above to see results...
Boolean Helpers are methods available on ReactiveVar instances that contain boolean values. These helpers provide a convenient way to toggle the state of a boolean reactive variable.
Switches the boolean value of the ReactiveVar to its opposite state.
boolean - The new value after toggling.
toggle()
method is particularly useful for managing binary states in your application, such as showing/hiding elements, enabling/disabling features, or switching between two modes.toggle()
will trigger any reactive computations that depend on this variable.