2.7.18. BindEvent

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

bindEvent: parameters
NameTypeRequired?Description
idIdYesThe unique ID of an event.
nameIdYesThe name of an event (for example: "onmessage").
messageIdYesThe variable name the event passes the message to.
positionIdNoDisplay position of the event. Possible values: "up", "mid", "down".

Note that you may put the shared events in the master template.