Open neilsmind opened 7 years ago
We needed this for a current project so went ahead and built it. Hope it can help the project.
<template> <navbar placement="top" v-on:collapse="collapse"> <!-- <------- Here's the custom event ... </navbar> </template> <script> import { navbar, dropdown } from 'vue-strap'; export default { data: function data() { return { collapsed: true, }; }, components: { navbar, dropdown, }, methods: { collapse() { // <-- This is the function called on the event this.collapsed = true; }, }, }; </script>
collapse
cc: @wffranco @yuche @shaoxiong789
We needed this for a current project so went ahead and built it. Hope it can help the project.
What does it do?
collapse
event on blur of navbarcollapse
event on click of menu itemWhat else should I know?
Related Issues
cc: @wffranco @yuche @shaoxiong789