Reactive API#

bind#

bind(function, *args[, watch])

Bind constant values, parameters, bound functions or reactive expressions to a function.

rx#

rx allows wrapping objects and then operating on them interactively while recording any operations applied to them.

rx([obj])

A class for creating reactive expressions by wrapping objects.

reactive_ops(reactive)

The reactive operations namespace.

These methods and properties are available under the .rx namespace of reactive expressions (rx):

and_(other)

Perform a logical AND operation with the given operand.

bool()

Evaluate the truthiness of the current object.

buffer(n)

Collect the last n items emitted by the reactive expression.

in_(other)

Check if the current object is contained "in" the given operand.

is_(other)

Perform a logical "is" comparison with the given operand.

is_not(other)

Perform a logical "is not" comparison with the given operand.

len()

Return the length of the current object as a reactive expression.

map(func, /, *args, **kwargs)

Apply a function to each item in the reactive collection.

not_()

Perform a logical NOT operation on the current reactive value.

or_(other)

Perform a logical OR operation with the given operand.

pipe(func, /, *args, **kwargs)

Apply a chainable function to the current reactive value.

resolve([nested, recursive])

Resolve references held by the reactive expression.

set(value)

Set the input of the pipeline to a new value.

updating()

Return a new expression that indicates whether the current expression is updating.

when(*dependencies[, initial])

Create a reactive expression that updates only when specified dependencies change.

where(x, y)

Return either x or y depending on the current state of the expression.

value

Get or set the current state of the reactive expression.

watch([fn, onlychanged, queued, precedence])

Add a callback to observe changes in the reactive expression's output.