@allinmkt/vue-sidebar
v1.0.3
Published
A sidebar with metronic template
Downloads
9
Keywords
Readme
Complete and flexible sidebar, inspired by metronic
Install
npm i @allinmkt/vue-sidebar
How to
In any of your vue files:
JS:
import KTAside from '@allinmkt/vue-sidebar'
export default {
name: 'MyPage',
components: {
KTAside
},
data() {
return {
sidebar: [
{
name: "I18N",
icon: "menu-icon flaticon2-architecture-and-city",
href: "/dashboard"
},
{
name: "I18N",
icon: "menu-icon flaticon2-mail-1",
href: "/builder"
},
{
name: "I18N",
href: "#",
icon: "menu-icon flaticon2-list-2",
submenu: [
{
name: "Test",
href: "/test"
},
{
name: "Test2",
href: "/test"
}
]
}
]
};
}
}
Template:
<template>
<div>
<KTAside :sidebar="sidebar" v-if="asideEnabled"></KTAside>
</div>
</template>