Socket
Socket
Sign inDemoInstall

vue-treeselect

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-treeselect

a tree select plugin for vue2


Version published
Weekly downloads
343
increased by5.86%
Maintainers
1
Weekly downloads
 
Created
Source

vue-treeselect

A Tree Select Plugin For Vue2.0+

vue-treeselect

This Plugin is based on vue-jstree, Some "props" can be used for reference !

NPM

    npm install vue-treeselect

ES6

    import VTreeselect from 'vue-treeselect'
    
    new Vue({
      components: {
        VTreeselect
      }
    })

Setup

    npm install
    npm run dev

Usage

    <v-tree-select :data="data" value-field-name="id" v-model="selectItem"></v-tree-select>
    
      new Vue({
        el: '#app',
        data: {
          data: [
            {
              "text": "Same but with checkboxes",
              "children": [
                {
                  "text": "initially selected",
                },
                {
                  "text": "custom icon",
                },
                {
                  "text": "initially open",
                  "children": [
                    {
                      "text": "Another node"
                    }
                  ]
                },
                {
                  "text": "custom icon",
                },
                {
                  "text": "disabled node",
                  "disabled": true
                }
              ]
            },
            {
              "text": "Same but with checkboxes",
              "children": [
                {
                  "text": "initially selected",
                },
                {
                  "text": "custom icon",
                },
                {
                  "text": "initially open",
                  "children": [
                    {
                      "text": "Another node"
                    }
                  ]
                },
                {
                  "text": "custom icon",
                },
                {
                  "text": "disabled node",
                  "disabled": true
                }
              ]
            },
            {
              "text": "And wholerow selection"
            }
          ],
          selectItem: null
        }
      })

Keywords

FAQs

Package last updated on 14 Dec 2017

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