Relay
Takes one event and relays it to multiple (child) handler elements. Good for automating multiple changes at once.
- class
- Relay
- extends
- Handle
- tag
<relay-blam>
Props
| name | type | default | description |
|---|---|---|---|
| mode | string | all | One of |
| prop | string | null | Not applicable for Relay. The |
| value | string | null | Not applicable for Relay. The |
| from | string | A CSS selector representing all elements from which events will be listened to. If not set, the node array defaults to the element’s |
|
| to | string | A CSS selector representing all elements to affect in response to the event. If not set, the node array defaults to the element’s |
|
| event | string | blam | The event type to listen for. For many Event-based elements, this is the generic custom event |
| bypass | boolean | false | Whether to stop responding to events as they happen. |
| chance | boolean | 1 | The probability that the |
Examples
Examples that use the Relay element: