Last active
December 22, 2020 07:07
-
-
Save mohammadYousefiDev/5fc224fba642f6a813eb26ec2782057c to your computer and use it in GitHub Desktop.
show/hide navbar dropdown menu on hover in bootstrap-vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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