Fire (broadcast) a signal. Additional data may be provided to the signal handlers, by setting values in the let map. Signals may be handlers with the <handle> tag.
Moya will catch and log any exceptions raised by the signal handler(s).
<fire signal="mordor.arrived" let:hobbit="Frodo"/>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
from |
Application | application reference | No | ||
sender |
Optional element associated with the signal. | element reference | No | ||
signal |
Signal name, should be in a dotted notation. Names with no dots are reserved by Moya. | text | Yes |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
if |
Conditional expression | expression | No | yes |