The AI Code Assistant helps you generate event handler code for elements on your site by allowing you to describe what you want your code to do when an element's event is triggered. The assistant returns the code that matches your request together with an explanation of the code. This feature is included in the Properties & Events panel located in the code editor toolbar.
For example, you can use the AI Code Assistant to:
- Add a click event to an element that displays a container or text box when the element is clicked.
- Register a hover event that changes an element's color when the mouse pointer hovers over it.
You can use the AI Code Assistant in the Wix Studio editor.
Take note of the following key points when using the AI Code Assistant:
- The assistant only supports simple use cases that can be implemented in frontend page code files. It doesn't currently support use cases that require both frontend and backend code.
- The assistant doesn’t support requests that require interactions with third-party services, external APIs, or the use of NPM packages.
- The assistant currently only supports requests in English.