I need unique information text to display for each dropdown item when hovered. I am using bootstrap-vue and have a loop set up for the dropdown items.
<b-dropdown :text="currentColorType">
<b-dropdown-item v-for="colorType in colorTypes"
:key="colorType.id"
:value="colorType.name">{{colorType.name}}</b-dropdown-item>
</b-dropdown>
<b-popover target="id" placement="bottom" triggers="hover blur">
<div>Unique Information Text Here</div>
</b-popover>
Is there a way to dynamically attach an id as target in the popover? I tried options like:
id="colorType.name"
id="`${colorType.name}`"
but they did not work. I'm also unsure if the popover would even trigger with this setup. Any suggestions on a better approach to show info on hover for dropdown items?