I have a component layout like the following:
<div class="list-item" v-for="item in items" :key="item.id">
<div class="sub-item"></div>
</div>
The problem I'm having is, how do I grab the handle of that sub-item element on demand? I need to essentially do something like this:
- Grab the item from the list where item ID = X.
- Grab the ".sub-item" HTMLElement under the selected item to adjust the elements "style.width" dynamically.
Thanks in advance.