not
Creates a new property binding, negating the bound value using the
!
operator.
static
not<S>(source: Binding.ValidPathString<S>, defaultValue?: boolean): Binding<boolean>
Parameters
- source — The source property name or path
- defaultValue — An optional default value, that’s used instead of the bound value when undefined
Return value
A new Binding instance.
Example
// Show a cell only when a property is true
ui.cell(
{ hidden: bound.not("showCell") },
// ...cell content
)
Related
- function bound(source, defaultValue?)Creates a new property binding.
- not()Adds a filter, to convert the bound value to a boolean, and negate it.