emit
Last updated
Last updated
BetterForms uses an internal event bus for communication between various elements. This allows parents, children and peers to all send information without direct references.
the emit
action emits a message to elements that may be listening via this internal event bus.
Key | value | Description |
---|---|---|
U:
G
**Example**
action
'emit'
Action name
options.eventName
{string}
The name of the event used to target the listener
options.message
{string | object}
The message body object, can be any type of data, see the elements specific fields it requires.