sidebar-nav
Collapsible Navigation Sidebar
3,551
| Install | |
|---|---|
npm install sidebar-nav |
|
| Latest Version: | 1.0.18 |
| Vue: | 2 |
| Last Updated: | Sep 23, 2018 |
| Links: | npm |
Maintainer: shane_poppleton
sidebar-nav v1.0.18
Collapsible Sidebar Navigation
Installation
Using npm:
$ npm i --save sidebar-nav
Using yarn:
$ yarn add sidebar-nav
Usage
in app.js:
import SidebarNav from 'sidebar-nav';
then, to register it as a global component:
Vue.component('sidebar-nav', SidebarNav);
To use this component add a menu array to your root vue component:
e.g.
data: {
menu: [{
icon: 'fas fa-comment',
name: 'Messaging',
link: '/'
}, {
icon: 'fas fa-users',
name: 'Families',
link: '/'
}, {
icon: 'fas fa-user',
name: 'Contacts',
link: '/'
}]
}
Then use the component like this:
<sidebar-nav :menu="menu" side="right" sidebar-top="100px"></sidebar-nav>
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.18 | ^2.5.16 | ||
| 1.0.17 | ^2.5.16 | ||
| 1.0.16 | ^2.5.16 | ||
| 1.0.15 | ^2.5.16 | ||
| 1.0.14 | ^2.5.16 | ||
| 1.0.13 | ^2.5.16 | ||
| 1.0.12 | ^2.5.16 | ||
| 1.0.11 | ^2.5.16 | ||
| 1.0.10 | ^2.5.16 | ||
| 1.0.9 | ^2.5.16 | ||
| 1.0.8 | ^2.5.16 | ||
| 1.0.7 | ^2.5.16 | ||
| 1.0.6 | ^2.5.16 | ||
| 1.0.5 | ^2.5.16 | ||
| 1.0.4 | ^2.5.16 | ||
| 1.0.3 | |||
| 1.0.2 | |||
| 1.0.1 | |||
| 1.0.0 | ISC |