I have a list of items in a listView that need to be visually grouped based on their class, displayed within boxes.
For example, I have 5 items with the following classes:
<div class="1"></div>
<div class="1"></div>
<div class="2"></div>
<div class="3"></div>
<div class="3"></div>
https://i.stack.imgur.com/Zru8N.png
I want to display boxes around items with similar classes like the image above.
If a new item is added with class "1" to the ViewModel, it should be placed inside the existing box for items with class "1".
Can someone provide guidance on how to group items by class and style them with CSS using boxes?