{"id":13424094,"url":"https://github.com/10quality/vue-tree-view","last_synced_at":"2025-06-14T15:06:04.994Z","repository":{"id":58243043,"uuid":"59869805","full_name":"10quality/vue-tree-view","owner":"10quality","description":"Tree View component for Vue JS.","archived":false,"fork":false,"pushed_at":"2016-05-30T18:49:11.000Z","size":31,"stargazers_count":43,"open_issues_count":4,"forks_count":20,"subscribers_count":6,"default_branch":"v1.0","last_synced_at":"2025-06-09T20:07:56.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10quality.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-28T00:19:45.000Z","updated_at":"2021-03-14T15:21:04.000Z","dependencies_parsed_at":"2022-08-31T01:00:19.104Z","dependency_job_id":null,"html_url":"https://github.com/10quality/vue-tree-view","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/10quality/vue-tree-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fvue-tree-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fvue-tree-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fvue-tree-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fvue-tree-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10quality","download_url":"https://codeload.github.com/10quality/vue-tree-view/tar.gz/refs/heads/v1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fvue-tree-view/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259835390,"owners_count":22918980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T00:00:48.467Z","updated_at":"2025-06-14T15:06:04.968Z","avatar_url":"https://github.com/10quality.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# Tree View Component (for [Vue](http://vuejs.org/))\n\n[![GitHub version](https://badge.fury.io/gh/10quality%2Fvue-tree-view.svg)](https://badge.fury.io/gh/10quality%2Fvue-tree-view)\n[![Bower version](https://badge.fury.io/bo/vue-tree-view.svg)](https://badge.fury.io/bo/vue-tree-view)\n\nTree view component for [Vue Js](http://vuejs.org/).\n\n[Demo](http://codepen.io/amostajo/pen/zBYoPM)\n\n[Demo (with Bootstrap)](http://codepen.io/amostajo/pen/mEdOxP)\n\n[Demo (with customized CSS)](http://codepen.io/amostajo/pen/BzaQxW)\n\n## Package index\n- [Installation](#installation)\n- [Usage](#usage)\n    - [Props](#props)\n    - [Events](#event)\n- [License](#license)\n\n## Installation\n\nSeveral installation options are available:\n\n- [Download the latest release](https://github.com/10quality/vue-tree-view/releases).\n- Install with [Bower](http://bower.io): `bower install vue-tree-view`.\n\n## Usage\n\nAdd the following resources for the *tree view* to function correctly.\n\n```html\n\u003c!-- Required Stylesheets --\u003e\n\u003clink href=\"[component path]/dist/vue.tree-view.min.css\" rel=\"stylesheet\"\u003e\n\n\u003c!-- Required Javascript --\u003e\n\u003cscript src=\"vue.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"[component path]/dist/vue.tree-view.min.js\"\u003e\u003c/script\u003e\n```\n\nAdd the component in your vue view.\n\n```html\n\u003c!-- Assuming your view app is APP. --\u003e\n\u003cbody id=\"app\"\u003e\n\n    \u003ctreeview :value.sync=\"value\"\n        :model=\"treeData\"\n    \u003e\u003c/treeview\u003e\n\n\u003c/body\u003e\n```\n\nWhere:\n* *model* is the tree data within your vue model.\n* *value* is the selected value in the tree you want to bind with your model.\n\n### Props\n\nList of available props to use in component:\n\nProp        | Data Type         | Default   | Description\n----------- | ----------------- | --------- | -----------\n`model`     | Array             | []        | Tree data.\n`value`     | String or Numeric |           | Tree's selected value.\n`class`     | String            |           | CSS Class to add to treeview.\n`children`  | String            | nodes     | Name of the property in the *tree* that contains child nodes.\n`labelname` | String            | label     | Name of the property in the *tree* that contains the node's label.\n`valuename` | String            | value     | Name of the property in the *tree* that contains the node's value.\n\nUsage example ([Demo](http://codepen.io/amostajo/pen/rLNWZQ)):\n\n```html\n\u003cbody id=\"app\"\u003e\n\n    \u003ctreeview :value.sync=\"id\"\n        :model=\"users\"\n        class=\"form-control\"\n        labelname=\"name\"\n        valuename=\"id\"\n    \u003e\u003c/treeview\u003e\n\n\u003c/body\u003e\n```\n\n```javascript\nnew Vue({\n    el: '#app',\n    data: {\n        id: undefined, // Binded to component.\n        users: [\n            {\n                name: 'John',\n                id: 1\n            },\n            {\n                name: 'Jane',\n                id: 2\n            }\n        ],\n    }, \n});\n```\n\n### Events\n\nList of available events to use in component:\n\nEvent            | Passes                  | Description\n---------------- | ----------------------- | -----------\n`treeview_click` | `node`: Selected node   | Triggered when a node is clicked.\n\nUsage example ([Demo](http://codepen.io/amostajo/pen/zBYomb)):\n\n```javascript\nnew Vue({\n    el: '#app',\n    events: {\n        'treeview_click': function(node) {\n            // TODO my code here\n            console.log(node.label);\n            console.log(node.value);\n        }\n    }, \n});\n```\n\n## License\n\nCopyright (c) 2016 [10Quality](http://www.10quality.com/). Under MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10quality%2Fvue-tree-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10quality%2Fvue-tree-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10quality%2Fvue-tree-view/lists"}