ractive.toggle()

Toggles the selected keypath. In other words, if foo is truthy, then ractive.toggle('foo') will make it false, and vice-versa.

ractive.toggle( keypath )

Returns a Promise (see Promises)

keypath String

The keypath to toggle the value of. If keypath is a pattern, then all matching keypaths will be toggled.