Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hoadv/vue-sidebar-group-tree

The vue side bar group tree
https://github.com/hoadv/vue-sidebar-group-tree

menu menu-navigation menubar vue vue-components vue-router vuejs vuejs2

Last synced: 4 days ago
JSON representation

The vue side bar group tree

Awesome Lists containing this project

README

        

# Description
The vue side bar group tree

![image](https://user-images.githubusercontent.com/8998946/34971908-88a85b16-fab0-11e7-8a1a-19182f9c47e7.png)

# Installation
npm i vue-sidebar-group-tree

# Using
vue-sidebar-group-tree v-bind:items="categories" v-bind:item-id="categoryId" v-bind:sub-item-id="subcategoryId" v-bind:setting="setting">

this.$events.on('selectedItemFired', this.updateCategory);

this.$events.on('selectedSubItemFired', this.updateSubCategory);

categories = [
{
id: 1,
name: 'Category 1',
subitems: [
{
id: 1,
name: 'SubCategory 1'
}
]
}
]

categoryId: null,

subcategoryId: null,

setting: {title: 'The title'}

# Sample
Refer to sample\ex