Elements runtime reference / Live streaming

clearRows

Clear the current live command-stream datasource rows.

Signatuur

clearRows(payload=None, **kwargs)

Doel

Clear the current live command-stream datasource rows.

Aliases and imports

  • clear_rows

Payloadformaat

Use these fields as the Python call arguments or keyword payload for this helper.

{}
FieldDescription
payloadAccepted for compatibility; ignored by the current command payload.
kwargsAccepted for compatibility.

Return payload

{
  "event": "command",
  "op": "clear"
}

Voorbeeld

def run():
    clearRows()
    appendRows([{"step": 1, "status": "fresh"}])
    return {"ok": True}

Scope-notities