boolean
Creates a new property binding, for a boolean value.
static
boolean<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.
Related
- function bound(source, defaultValue?)Creates a new property binding.
- asBoolean()Adds a filter, to convert the bound value to a boolean.