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:

clear:
The predicate succeeds. As a side effect the current cursor is cleared.
goto(I):
The predicate changes the cursor to the element with id I.
bind(T, P, G):
bind(C, T, P, G):
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 an element.
listen(T, P, G, L):
listen(C, 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 quinary predicate allows specifying an element. The following options are supported:

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.

Kommentare