number
Creates a new property binding, for a number value.
static
number<S>(source: Binding.ValidPathString<S>, defaultValue?: number): Binding<number>
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.
- asNumber()Adds a filter, to convert the bound value to a number.