How to create gallery by code?

I need a page of multiple Pro Galleries like this: https://feelmy.editorx.io/world – one gallery for each group of images at the same page.
How to do it by a code: add as many galleries as there are image groups in the result.
The example above is a prototype with a set of galleries/sections created manually: slow, ugly and limiting. I need to create the Pro Galleries by code to match search results and fill them by lazy loading.
The problem is that Pro Galleries can’t be placed in a repeater. How to add galleries by code?
Thank you

You simply can’t add NEW gallaries by code.
Your workaround would be, to place several gallaries onto page and hide them.
Or you look in the APIs if there is a way to just change the source of gallaries, the same way like on images.

$w(“#myImage”).src=“*********”
Or repeaters…
$w(‘#myRepeater’).data=

Sad. But thanks for the reply. Your suggestion of showing/hiding is actually what I did, but it is slow as hell, and provides only a limited number result.
Changing the source of the whole gallery won’t help in my case, because I need them put more of the galleries lower in the page.

What about other workarounds?
– can sections be created by code?
– can I move element (gallery) between sections by code to make a feeling there are more of them while scrolling down?
– or can I put a custom element (a wrapper around the gallery) into a repeater?
Or any other idea how to make it work?
Thank you.

_Perhaps using a MULTISTEP-BOX?
But then you would not scroll down anymore.

If nothing fits your needs, your last way would be to generate your GALLARIES perhaps in/as custom element or in an HTML-Component.

@petrmeissner
Sadly enough there is no way to add a Gallery in a repeater.
There is 1 solution and that is to use a Table in a repaeter.

don’t know if it will apply to what you need.
and it won’t be horizontal to show images, it will show vertical to show in a table.
Kind regards,
Kristof.

HTML-Component/iframe in the repeater is actually interesting and creative idea. Really appreciating this suggestion.
It might work if messaging data limits between the iframe/parent wouldn’t interfere or if an alternative solution of one query per iframe wouldn’t have hard times performance-wise.
I’ll try it.

@volkaertskristof No, repeater limits mention that Galleries can’t be added there.
Is it possible to add new Pro Galleries into the cells? How? That’s what I don’t know how to do: create new galleries according to a query results and attach them one below the other. If it is possible to do it through tables, it would be great. But how?

After investigating, not even the HTML-Component/iframe can be added to a repeater.