JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › DropDownList › Coloring list items › Reply To: Coloring list items
October 13, 2022 at 11:54 am
#103862
svetoslav_borislavov
Participant
Hi,
You can set the style programmatically. Have a look at this example: https://codepen.io/dkeamcaksoem/pen/KKRJNZB
or
You can set a class for the list of items that you want to edit and use this class to select their inner element in the querySelectorAll.
Example: querySelectorAll(‘.my-items .smart-list-item-container’)
Best Regards,
Svetoslav Borislavov
Smart UI Team
https://www.htmlelements.com/