const el = document.createElement('covet-pics-widget');
el.galleryEmbedId = XYZ;
// now embed gallery into a <div class="my-gallery"></div>
const wrap = document.querySelector(".my-gallery");
This could be useful if you want to programmatically embed the gallery, for eg. you can create a script that will detect user scroll and embed gallery only after user scrolled to certain position on the page.
Article is closed for comments.