File "react"

This file provides predicates to handle events. An event handler can be established with the predicate bind/3 for the DOM cell at the cursor. This event handler will be called in callback mode, means it will be called in the task context when the event handler was created and it will be called without auto-yield or the possibility to use async.

The following react predicates are provided:

tag_goto(I):
The predicate succeeds. As a side effect the cursor is set to the element with id I.
tag_clear:
The predicate succeeds. As a side effect the cursor content is removed.
tag_remove:
The predicate succeeds. As a side effect the cursor is removed and set to its parent.
tag_bind(T, P, G):
tag_bind(T, P, G, L):
The predicate succeeds. As a side effect it adds a type T stack-less event handler with formal event parameter P and callback goal G to the cursor. The quaternary predicate allows specifying event options:

capture(B): The capture phase flag B, default is false.
block(B): The wait for event flag B, default is false.

dom_prevent_default(E):
The predicate prevents default of the event E.
dom_stop_propagation(E):
The predicate stops propagation of the event E.