DEV Community

Paul
Paul

Posted on • Edited on

Wix's Velo API is super frustrating ๐Ÿ˜Ÿ

I am new to wix, and wanted to participate in the Wix Studio Challenge and try create something unique, but using Velo API is super frustrating. I am spending hours making simplest things works.

Many commonly available features of Vanilla JS doesn't work. I am also having to find work around, most of the time the code gets unnecessary long.

The Velo API should complement Vanilla JS rather than making programming JS more difficult.

Here are some of the limitations.

  • Can't select elements by className, I am having to manually type in Ids of each elements if JS was not blocked document.querySelectorAll() could have helped reduce unnecesary code.
  • Can't create custom Events, if you need you'd be required to make custom element that works only for premium subscription.
  • Touch events doesn't exist???? its 2024, more than 70% of the internet traffic comes from mobile devices. I should be able to track touch events like swipe and trigger certain actions.
  • addEventListner should be readily available and we should be able to listen to other events!

That's all! thanks for listening my rant.

Edit
I have decided to complete what I started, you can view here: https://dev.to/paul_freeman/tikcommerce-an-ecommerce-experience-for-the-next-generation-nfc

Top comments (3)

Collapse
 
anthonywix profile image
Anthony L • Edited

I appreciate the feedback and will share internally. To add some context Wix is focused on being an all in one platform and because of that we have a Virtual DOM that doesn't allow access to every browser capability. I realize this isn't the answer you want but I do appreciate you taking the time to share your thoughts.

I'll definitely request the addition of touch events, custom events, and addEventListener from within Velo. If you're so inclined we also have a roadmap here where users can request features: support.wix.com/en/roadmap

Collapse
 
sarahokolo profile image
sahra ๐Ÿ’ซ

Honestly, I thought I would be done with the project in less than 4 hours. LoL, but I'm already 4 days in๐Ÿ˜ญ. I expected vanilla js to work just as easily on the platform, but it's constrained.

Collapse
 
paul_freeman profile image
Paul

Good to know I am not the only one. Their studio UI is also a bit heavy, and lacks basic features to hide elements in dev mode. It's taking forever to create even simple stuff ๐Ÿ˜ฉ.