Vue.js implementation of Slideout.js - Vue.js Feed

vue-slideout This component is a simple vue implementation of Slideout.js, a simple slideout navigation menu. Example Install npm install vue-slideout Usage App.vue import Slideout from 'vue-slideou


vue-slideout

This component is a simple vue implementation of Slideout.js, a simple slideout navigation menu.

Example

Install
npm install vue-slideout
Usage App.vue
import Slideout from 'vue-slideout'

components: {
    Slideout
},
methods: {
    open: function () {
        console.log('slideoutOpen')
    }
}
<Slideout menu="#menu" panel="#panel" :toggleSelectors="['.toggle-button']" @on-open="open">
<nav id="menu">
Menu
</nav> <main id="panel"> <header>
Panel
</header> </main> </Slideout>
You can find vue-slideout on GitHub.


Source link

Tags :