#103914

Hi,

You can do the following:

  1. Set a dataSource with the items and in the object, you can add a property for the class
  2. ForEach the dataSource and for each item, you can get the relevant element and apply the element’s class

Please look at the demo here: https://codepen.io/svetoslavb04/pen/OJEJXbe

Hope this helps!

Best Regards,
Svetoslav Borislavov

Smart UI Team
https://www.htmlelements.com/