Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

vue-jstree

<v-jstree :data="data" show-checkbox multiple allow-batch whole-row @item-click="itemClick"></v-jstree>
    
    new Vue({
      data: {
        data: [
          {
            "text": "Same but with checkboxes",
            "children": [
              {
                "text": "initially selected",
                "selected": true
              },
              {
                "text": "custom icon",
                "icon": "fa fa-warning icon-state-danger"
              },
              {
                "text": "initially open",
                "icon": "fa fa-folder icon-state-default",
                "opened": true,
                "children": [
                  {
                    "text": "Another node"
                  }
                ]
              },
              {
                "text": "custom icon",
                "icon": "fa fa-warning icon-state-warning"
              },
              {
                "text": "disabled node",
                "icon": "fa fa-check icon-state-success",
                "disabled": true
              }
            ]
          },
          {
            "text": "Same but with checkboxes",
            "opened": true,
            "children": [
              {
                "text": "initially selected",
                "selected": true
              },
              {
                "text": "custom icon",
                "icon": "fa fa-warning icon-state-danger"
              },
              {
                "text": "initially open",
                "icon": "fa fa-folder icon-state-default",
                "opened": true,
                "children": [
                  {
                    "text": "Another node"
                  }
                ]
              },
              {
                "text": "custom icon",
                "icon": "fa fa-warning icon-state-warning"
              },
              {
                "text": "disabled node",
                "icon": "fa fa-check icon-state-success",
                "disabled": true
              }
            ]
          },
          {
            "text": "And wholerow selection"
          }
        ]
      },
      methods: {
        itemClick (node) {
          console.log(node.model.text + ' clicked !')
        }
      }
    })
Comment

PREVIOUS NEXT
Code Example
Javascript :: Nodemon e criando o Servidor com express 
Javascript :: How to Create a “Sticky” Floating Footer Bar in WordPress 
Javascript :: how to add some thing in JS Array 
Javascript :: call apply mnemonic javascript 
Javascript :: how to disable background when popup open in javascript 
Javascript :: javascript escaped string 
Javascript :: tab in textarea javascript 
Javascript :: highlight each occurrence of text 
Javascript :: how to go back old tab closing new tab in js 
Javascript :: jquery 3.2 1 min js download 
Javascript :: how to change selected link in jquery 
Javascript :: switch is not exported from react-router-dom 
Javascript :: dot notation vs bracket notation javascript 
Javascript :: mongoose validate array of references required 
Javascript :: How to set variable data in JSON body for the code that generated by Postman in c# 
Javascript :: /home/raj/Desktop/webProjects/node-shop-api/node_modules/whatwg-url/dist/encoding.js:2 const utf8Encoder = new TextEncoder(); ^ ReferenceError: TextEncoder is not defined 
Javascript :: reprompt for permissions with getUserMedia() after initial denial 
Javascript :: Angular bind only when mouse moves 
Javascript :: silk carousel jquery 
Javascript :: node base64 svg to png 
Javascript :: fcctest cdn reactjs setup 
Javascript :: store string in array javascript 
Javascript :: angular refresh component on button click 
Javascript :: Fabricjs configurations 
Javascript :: linearSearch 
Javascript :: javascript make variable 
Javascript :: requiere and get a property simplified with Node 
Javascript :: trim angular material input with ellipsis 
Javascript :: Domafter injection bottom 
Javascript :: how to generate an array of random numbers in javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =