ON
EngineEvents
Registers an event handler.
Example
Code
Parameters
- eventType: string
- fieldKeyOrCallback: string|function
- callback: function (optional)
Returns
Operation descriptor (used by clients).
Try it
You need form0-cli. All event builtin pages use the same test form.
-
Download the form and start the preview:
Code -
Open
http://localhost:3030. -
Choose Rome in City. The form's
ON("change", "city", ...)handler runs, and an alert opens.
Last modified on