This is a compilation stage instruction. It allows to create shared events for the OPT components (see Components). It takes three or four parameters:
Table 2.14. bindEvent: parameters
Name | Type | Required? | Description |
---|---|---|---|
id | Id | Yes | The unique ID of an event. |
name | Id | Yes | The name of an event (for example: "onmessage"). |
message | Id | Yes | The variable name the event passes the message to. |
position | Id | No | Display position of the event. Possible values: "up", "mid", "down". |
Note that you may put the shared events in the master template.