This is the Component Events update, featuring a whole bunch of user configurable client-side events.
The event
property is broken into two categories: lifecycle
and dom
events.
Lifecycle Events (events.lifecycle
)
Several component lifecycle events are now configurable. Supported events:
onMount
onUpdate
onUnmount
DOM Events (events.dom
)
All React Synthetic Event handlers are now configurable through events.dom
. Not all of these events are meaningful/supported by the underlying canvas element, but the full list is provided anyways.
These events are registered through the supported SDK interface and do not interfere with the normal gateway-side events (e.g. you can still add Component Events).
Supported events (go crazy):
onCopy
onCut
onPaste
onCompositionEnd
onCompositionStart
onCompositionUpdate
onFocus
onBlur
onChange
onBeforeInput
onInput
onReset
onSubmit
onInvalid
onLoad
onError
onKeyDown
onKeyPress
onKeyUp
onAbort
onCanPlay
onCanPlayThrough
onDurationChange
onEmptied
onEncrypted
onEnded
onLoadedData
onLoadedMetadata
onPause
onPlay
onPlaying
onProgress
onRateChange
onResize
onSeeked
onSeeking
onStalled
onSuspend
onTimeUpdate
onVolumeChange
onWaiting
onAuxClick
onClick
onContextMenu
onDoubleClick
onDrag
onDragEnd
onDragEnter
onDragExit
onDragLeave
onDragOver
onDragStart
onDrop
onMouseDown
onMouseEnter
onMouseLeave
onMouseMove
onMouseOut
onMouseOver
onMouseUp
onSelect
onTouchCancel
onTouchEnd
onTouchMove
onTouchStart
onPointerDown
onPointerMove
onPointerUp
onPointerCancel
onPointerEnter
onPointerLeave
onPointerOver
onPointerOut
onScroll
onWheel
onAnimationStart
onAnimationEnd
onAnimationIteration
onTransitionEnd
Changes
- The
events.beforeRender
property has been deprecated and is no longer suggested in the property schema.
New Sponsors
Shoutout to Artek for the new sponsorship!
If you’re interested in sponsoring this project, check out our GitHub sponsorship page.