Dynamicly populating carousel

I would like to dynamically populate a carousel with information I get from API call.
How can I do that? I need to have an image (from URL), text, description, title, and Register button with custom url.

1 Like

Hi @vadimgg ,

In order to generate a dynamic carousel, we have to store the results inside an array of objects.

let result = [{
title:"Name",
text:"description"
image:"imagelink"
actions : [{
  title: 'Register',
  url:"url"
}]
}]

This could help you achieve your use case, Please let us know incase of any queries

Thanks

1 Like

Is there a way to spawn a carousel from code?
How would it look like? can you give an example?

1 Like