Skip to main content
Version: Next

observeBrick()

function observeBrick(
$,
brick,
inputs,
waitForValue?): Observable<any[]>;

Execute the given Brick and observe its outputs Details and examples here: https://support.olympe.io/code_tutorials/execute_brick

Parameters

ParameterTypeDescription
$BrickContextthe current brick context
brickBrickReferencethe brick to execute
inputsany[]the inputs passed to the executed brick
waitForValue?booleanwhether the observable should wait for values (default = true)

Returns

Observable<any[]>

an observable giving the outputs of the brick