Hello
I’ve been trying Wix/EditorX from a Developer perspective and have some questions so far.
Can we work directly with the DOM for some complex interactions? (create Elements on the fly, appendChild, data-attribute, working with SVGs, etc)
Is there a way to add some custom HTML and CSS, or do we have to do everything from the editor?
I have built and saved a section that I want to reuse on other pages and order websites. The behavior (animations, toggles, etc) is controlled by Javascript. How can I save a reusable section which depends on some custom scripts? Should I use Wix Blocks instead? Or create a Velo Package?
Can please help me with this? I’m new to the Wix Ecosystem and I would also be glad to have some tips about how to get started from a Developer’s POV.
Yes you can ----> ON PREMIUM-SITES ONLY <-----
Using a CUSTOM-ELEMENT or an HTML-COMPONENT.
More operational element is the CUSTOM-ELEMENT, there you can build your own WORLD.
I want to pass data from a collection inside my CustomElement. Basically I have a repeater, connected to a dataset. When I click in a repeater Item, i want to pass the Item informations to the customElement and render it by adding it to the dom inside the customElement. (eg. with appendChild). How can I have achieve this? I tried to use attributeChangedCallback but this seems to rerender the customElement and causing the previously added Items to disappear.
I tried:
call a Function inside a customElment
dispatch a CustomEvent wich will be handled by the Custom Element
access wix-data inside the customElement
none of these worked
So, as i understand you want to start to work from Wix-Editors POV ???
First start your editor
Enable the DEV-MODE (developers-mode) inside your Wix-Editor.
Now you have the view from developers POV.
To be able to insert your wished functionality, you will have to add a CUSTOM-ELEMENT. As i can see, you already worked with custom-elements, so you will have already some experience in the usage of them and surely you will also have some HTML and CSS knowledge.
Use the SEARCH of VELO-FORUM and find related articles. There are a lot of them already. They will lead you to the right direction. A assume you are already an experienced coder → so you will find your SOLUTION.