Refresh images in Carousel element

Hi,

For each product, I need to show a form with a Carousel element. In documentation, I found a way how to prepare static set of images for carousel. But how can load a set of new images each time, when user opens some new product?

Can anyone share a code snippet / advice for this common task, please?

Check the next sample
http://webix.com/snippet/94fe3949

Unfortunately for now, it is overcomplicated. In one of next build we will add some kind of data carousel component, which works with items similar to list and grid. So it will be possible to add, load, change, remove them through common data api.

Thank you very much for the snippet.

As I understand, this means, that if we have webix grid, which is dynamically populated from database (via some datatable.php) with hundreds of rows - it is almost impossible to show form with Carousel, when user click on on a row of grid?

Because, judging from the snippet, we need to prepare all Carousels beforehand…

Nope, you can form carousel’s code on the fly, it just not as simple as it must be
Check this sample, it fills carousel with random data each new time
http://webix.com/snippet/b6e592eb

I see…
We’ll try to create form with Carousel and other elements in OnDblClick event of grid row, then, instead of static definition.
Thank you

greate solution! big thanks