Skip to content

Instantly share code, notes, and snippets.

@mohammadYousefiDev
Last active December 22, 2020 07:07
Show Gist options
  • Save mohammadYousefiDev/5fc224fba642f6a813eb26ec2782057c to your computer and use it in GitHub Desktop.
Save mohammadYousefiDev/5fc224fba642f6a813eb26ec2782057c to your computer and use it in GitHub Desktop.
show/hide navbar dropdown menu on hover in bootstrap-vue
<b-nav-item-dropdown v-b-hover="onOverService" ref="showServices" text="services">
<b-dropdown-item to="/">one</b-dropdown-item>
<b-dropdown-item to="/">two</b-dropdown-item>
</b-nav-item-dropdown>
<!-- method -->
onOverService(isHovered)
{
if(isHovered)
this.$refs.showService.visible = true
else
this.$refs.showService.visible = false
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment