Docs (4.0.0)
function bound function

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