functional-vaadin.rx.operators
Useful operators to transform streams from Vaadin component observables
commit
(commit commit-error-handler xs)(commit xs)
Usage: (commit error-handler? xs)
Commit a received event from a form item by calling commit on the forms field group and extracting the data as an item. The item
is passed on to the next subscriber. Assumes it will receive either a single FieldGroup object, or a Map with
containing a key :field-group. For the former, just the item data is passed on, in the latter case, the data is added
to the Map under a key :item. Simply passes on the received data if there is no field group.
consume-for
(consume-for comp c-fn xs)
Usage: (consume-for component fn xs)
Subscribes to an Observable xs, calling the function fn with the given component for every event received
from xs.
with-ui-access
(with-ui-access xs)
Usage: (with-ui-access xs)
Forward events to subscribers protected by a UI access lock. Uses UI.access() which hands the onNext off to a Future.