Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
321
increased by96.93%
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>

Demo

You can visit this codepen for a simple demo. Please see documentation/demo for more examples including vue-router.

Installation

Include with a script tag

<script src="https://unpkg.com/vue-tree-navigation@2.1.2/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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc