Alpha: Editor React Components are currently in alpha. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.
Event handler data types allow Wix users to attach standard DOM event handlers to their component. These types automatically wire up event handling in the editor and at runtime.
All event handler types require no additional configuration. Just specify the dataType and optionally a displayName.
Standard onClick handler for click interactions.
A click handler for button interactions:
Standard input event onChange for text inputs.
An input change handler for a text field:
Standard onKeyPress handler fired when a key is pressed.
A key press handler for keyboard input:
Standard onKeyUp handler fired when a key is released.
A key up handler for keyboard events:
Standard onKeyDown handler fired when a key is pressed down.
A key down handler for keyboard navigation:
Standard onFocus handler fired when an element receives focus.
A focus handler for form validation:
Standard onSubmit handler for form submissions.
A submit handler for form processing:
A custom function that can be passed in if there is a matching one defined.
A custom function handler: