web remove

This block is part of the web group and was last modified in core v15.0.1.

web remove v15.0.1

Removes one element from the page, e.g. the row of a deleted document.

In pins 2 + flow
  • flow
  • key value

    The element's data-key: a row of web for each, or the key a web action received.

  • target value

    A CSS selector instead of a key, e.g. #cart-count.

Out pins 0 + flow
  • flow

Adds a browser update to the web action's answer: the element is removed (after a short fade). Typical delete flow: web_action(key) -> storage delete(key) -> web_remove(key). Addressed by `key` (matches [data-key="<key>"]) or, when key is empty, `target` (a CSS selector); neither is an error that stops the flow. Only in a flow started by web_action (an error elsewhere). Updates apply in the order the blocks ran.

delete row
remove element

The button sits in a row that web for each gave a data-key, so on web action receives that document's guid on key. remove document deletes it, and web remove takes the same key and removes the row from the page after a short fade. A row that is already gone from the page is not an error.

Studio canvas example for the web remove block: deleting the row that was clicked.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v15.0.1.

  • v15.0.1: block added in this release.

Back to web Return to the main group to view all sub-groups Back to web actions Return to the group to view all blocks within this group