strf
Creates a new string-formatted binding, with nested property bindings.
static
strf<S extends string>(format: S, ...bindings: Binding.StringFormatArgsFor<S>): StringFormatBinding<S>
Notes
- Refer to StringFormatBinding for more information on string-formatted bindings.
- You can also use Binding.asString() to format single values, e.g.
bound("n").asString(".2f")
, which introduces slightly less overhead.
Parameters
- format — The format string
- bindings — A list of associated bindings, or source paths that will be passed to bound()
Return value
A new StringFormatBinding instance.
Related
- function bound(source, defaultValue?)Creates a new property binding.