Vue Teatree is a simple tree-browsing component for VueJS with no added dependencies.
hierarchical tree structure, tree structure in javascript dynamically, vertical tree structure, vuetify treeview example, vue teatree, tree view component
Vue.js Drag and Drop Tree View Component Library
How to make use of it:
Install and download:
# Yarn $ yarn add vue-teatree # NPM $ npm i vue-teatree --save
1. Import the tea tree into your Vue.js project.
import { Teatree, NodeType, NodeName, NodeToggle } from "vue-teatree";
2. Add the Teatree component to the template.
<Teatree :roots="data"> <template slot="node-toggle" slot-scope="{ node }"> <NodeToggle :node="node" /> </template> <template slot="node-name" slot-scope="{ node }"> <NodeName :node="node" :handleNodeLeftClick="() => {}" :handleNodeRightClick="() => {}" /> </template> </Teatree>
3. Pass your data to the tree view.
const data: NodeType[] = [ { name: "node-1", show: true, showChildren: true, selected: false, children: [ { name: "node-1-1", show: true, showChildren: true, selected: false, children: [ { name: "node-1-1-1", show: true, showChildren: true, selected: false, children: [], }, ], }, ], }, ];
Minimal Nested Tree View Component, Vue Teatree Plugin/Github
See Demo And Download
Official Website(sarimabbas): Click Here
This superior jQuery/javascript plugin is developed by sarimabbas. For extra advanced usage, please go to the official website.