Dynamic creating of all WIX elements

I think it would be nice to actually be able to do this

import wix-elements from WIX-Elelemnts;

let newStrip = wix.elements.New(’strip’);

Set properties and then get a hold on existing elements the usual way and then

$w(’currentStrip3’).InsertAfter(newStrip);

And then the code created strip or element will inserted after one existing strip.

This way we could build elements by code and add stuff dynamically to a page that the designer can’t.

This would be very useful for advanced sites.

1 Like