An open API service indexing awesome lists of open source software.

https://github.com/onewaytech/vue-sidebar-component

Sidebar for Vue 1.x
https://github.com/onewaytech/vue-sidebar-component

routes sidebar vue

Last synced: 9 months ago
JSON representation

Sidebar for Vue 1.x

Awesome Lists containing this project

README

          

# Vue Sidebar Component

[![npm version][npm-v-img]][npm-url]
[![npm download][npm-dl-img]][npm-url]

> Intellectual property of [Oneway.mobi](http://www.oneway.mobi/)

#### Notice
This component is not meant to meet all the business requirements
so diving into `src/` to make it fits your needs is highly recommended

#### Example
See [here](https://onewaytech.github.io/vue-sidebar-component/example.html), source in [`example.html`](./example.html)
> Suggest inspecting it with [devtools](https://github.com/vuejs/vue-devtools)

#### Requirement
* Vue 1.x
* Vue Router 0.7.x
* jQuery + BootStrap 3.x + Font Awesome 4.x (available globally)

#### Installation
`npm i vue-sidebar-component -S`

> alternatively: ``
> which exposes **`VueSidebar`** as a global variable

#### Usage

```

props: {
mainTitle: String,
subTitle: String,
routes: { type: Object, required: true }
}
```

`routes` configuration example (more in [`example.html`](./example.html)):

```
'/': {
title: 'Home',
icon: 'fa fa-home',
showInSidebar: true,
component: {
template: '

Home
'
}
}
```

#### Build

`npm run build`

#### LICENSE

MIT

[npm-url]: https://www.npmjs.com/package/vue-sidebar-component
[npm-v-img]: http://img.shields.io/npm/v/vue-sidebar-component.svg
[npm-dl-img]: http://img.shields.io/npm/dm/vue-sidebar-component.svg