In regular JavaFX i would create a binding on 2 or more observables like this:
xxxProperty().bind(Bindings.createObjectBinding(() -> {...}, observable1, observable2, ...));
In ReactFx I was shown that I can create a binding like this:
xxxProperty().bind(val.map(value -> {...}));
but how do i create a binding on 2 or more ReactFX observables (Val and/or Var)?
For the general case, use one of these:
For combining 2-6 values, there are convenience methods provided:
All of these are static methods on
Val
.