aframe-proxy-event-component
A component to declaratively proxy events for A-Frame.
For A-Frame.
API
Property | Description | Default Value |
---|---|---|
captureBubbles | Whether to capture children's bubble events. | false |
enabled | Boolean used to toggle. If false, event will not be proxied. | true |
event | Event name to proxy. | '' |
from | Selector of entities to proxy event from. If set to PARENT , then will listen to parent for event. |
'' |
to | Selector of entities to proxy event to. If set to CHILDREN , then the event is recursively proxied to all children. |
'' |
as | Optional. Rename the event as the event is proxied to its target(s). | '' |
bubbles | Whether to bubble the proxied event. | false |
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-proxy-event-component
Then require and use.
;;