You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-tree-navigation

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tree-navigation

Vue.js 2 tree navigation

2.1.0
Source
npmnpm
Version published
Weekly downloads
262
-35.15%
Maintainers
1
Weekly downloads
 
Created
Source

vue-tree-navigation

Vue.js 2 tree navigation with vue-router support

For more information see documentation/demo

Example

<template>
  <vue-tree-navigation :items="items" :defaultOpenLevel="1" />
</template>

<script>
  export default {
    data() {
      return {
        items: [
          { name: 'Products', children: [                       // category label
            { name: 'Shoes', route: 'shoes' }                   // #/shoes
          ]},
          { name: 'About', route: 'about', children: [          // #/about
            { name: 'Contact', route: 'contact', children: [    // #/about/contact       
              { name: 'E-mail', element: 'email' },             // #/about/contact#email
              { name: 'Phone', element: 'phone' }               // #/about/contact#phone
            ]},
          ]},
        ],
      };
    },
  };
</script>

Installation

Include with a script tag

<script src="https://unpkg.com/vue-tree-navigation@2.0.1/dist/vue-tree-navigation.js"></script>

<script>
  Vue.use(VueTreeNavigation)
</script>

NPM

$ npm install vue-tree-navigation

main.js

import VueTreeNavigation from 'vue-tree-navigation';

Vue.use(VueTreeNavigation);

Requirements

  • Vue.js
  • vue-router (optional, only when you wish to use router links)

Developers

$ yarn dev

$ yarn build

$ yarn prettier
$ yarn lint

$ yarn unit
$ yarn unit --verbose

Keywords

tree

FAQs

Package last updated on 12 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts