Binding.combine()
Creates a new binding by combining multiple bindings into a single value.
static combine<R>(
sources: Array<string | Binding>,
callback: (...values: any[]) => R,
allowPartial?: boolean,
): Binding<R>;
Summary
The callback receives the latest values from all sources and returns the combined result.
Parameters
- sources — One or more bindings or source paths to combine
- callback — Function that maps source values to the combined result
- allowPartial — If true, the callback may run before all sources are bound
Return value
A new Binding object
Related
class Binding
A class that represents a property binding.
