LaravelLaravel & VueJsVueJs

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-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
★ READ ALSO ★  Drupal 8 Custom Block Module Dev – JimFrenette.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close