{"id":20579157,"url":"https://github.com/suusan2go/vuetify-draggable-treeview","last_synced_at":"2025-04-09T16:08:53.353Z","repository":{"id":36467910,"uuid":"224604691","full_name":"suusan2go/vuetify-draggable-treeview","owner":"suusan2go","description":"Vuetify draggable v-treeview component","archived":false,"fork":false,"pushed_at":"2023-11-02T14:14:07.000Z","size":2674,"stargazers_count":90,"open_issues_count":48,"forks_count":36,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:08:45.240Z","etag":null,"topics":["drag-and-drop","treeview","vue","vuetify"],"latest_commit_sha":null,"homepage":"https://v-draggable-treeview.netlify.com/","language":"Vue","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/suusan2go.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-28T08:24:45.000Z","updated_at":"2024-09-12T11:28:36.000Z","dependencies_parsed_at":"2024-12-25T11:13:22.825Z","dependency_job_id":"ae08d020-a283-4fe8-bd60-f65674024e8a","html_url":"https://github.com/suusan2go/vuetify-draggable-treeview","commit_stats":{"total_commits":280,"total_committers":4,"mean_commits":70.0,"dds":0.2678571428571429,"last_synced_commit":"21762258ef51eb4731916cd83c8037af24293ad7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suusan2go%2Fvuetify-draggable-treeview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suusan2go%2Fvuetify-draggable-treeview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suusan2go%2Fvuetify-draggable-treeview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suusan2go%2Fvuetify-draggable-treeview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suusan2go","download_url":"https://codeload.github.com/suusan2go/vuetify-draggable-treeview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041871,"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":["drag-and-drop","treeview","vue","vuetify"],"created_at":"2024-11-16T06:15:56.544Z","updated_at":"2025-04-09T16:08:53.334Z","avatar_url":"https://github.com/suusan2go.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/suusan2go/vuetify-draggable-treeview/workflows/test/badge.svg)](https://github.com/suusan2go/vuetify-draggable-treeview/actions)\n[![npm version](https://badge.fury.io/js/vuetify-draggable-treeview.svg)](https://badge.fury.io/js/vuetify-draggable-treeview)\n\n# vuetify-draggable-treeview\nDrag and drop `v-treeview` (Vuetify Treeview) component.\n\n[Live Demo](https://v-draggable-treeview.netlify.com/)\n\n![v-treeview](https://user-images.githubusercontent.com/8841470/70327688-b6ca2800-187a-11ea-907e-79d7dc3afca9.gif)\n\n\n## Installation\n\n```bash\nyarn add vuetify-draggable-treeview\n// @NOTE: This component requires vue, vuetify, vuedraggable as peerDependency.\nyarn add vuedraggable\n```\n\n## Setup\n\n```ts\nimport VuetifyDraggableTreeview from 'vuetify-draggable-treeview'\nVue.use(VuetifyDraggableTreeview)\n\n// or manually import\nVuetifyDraggableTreeview\n\nexport default Vue.extend({\n  components: {\n    VuetifyDraggableTreeview\n  }\n})\n\n```\n\n## Usage\n\n### Basic Example\n```vue\n\u003ctemplate\u003e\n\u003cv-draggable-treeview\n  group=\"test\"\n  v-model=\"items\"\n\u003e\u003c/v-draggable-treeview\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  data() {\n    return {\n      items: [{ id: 1, name: \"hoge\", children: [{ id:11, name: \"hoge-child1\" }] }]\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n### Drag and drop only in children.\n```vue\n\u003ctemplate\u003e\n\u003cv-draggable-treeview\n  v-model=\"items\"\n\u003e\u003c/v-draggable-treeview\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  data() {\n    return {\n      items: [{ id: 1, name: \"hoge\", children: [{ id:11, name: \"hoge-child1\" }] }]\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n### Using slot\n```vue\n\u003ctemplate\u003e\n\u003cv-draggable-treeview v-model=\"items\" group=\"hoge\"\u003e\n  \u003ctemplate v-slot:prepend=\"{ item }\"\u003e\n    \u003cv-icon\u003emdi-file\u003c/v-icon\u003e\n  \u003c/template\u003e\n  \u003ctemplate v-slot:label=\"{ item }\"\u003e\n    \u003cspan class=\"primary--text\"\u003e{{ item.name }}\u003c/span\u003e\n  \u003c/template\u003e\n  \u003ctemplate v-slot:append=\"{ item }\"\u003e\n    \u003ctemplate\n            v-if=\"item.children != null \u0026\u0026 item.children.length \u003e 0\"\n    \u003e\n      has {{ item.children.length }} children\n    \u003c/template\u003e\n  \u003c/template\u003e\n\u003c/v-draggable-treeview\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  data() {\n    return {\n      items: [{ id: 1, name: \"hoge\", children: [{ id:11, name: \"hoge-child1\" }] }]\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n## API\nCurrently, this component dose not support all original `v-treeview` component's props, slots, event.\n\n### Props\nName | Type | Default | Description\n--- | ---- | ---- | ---\nvalue | Object | [] | items for treeview. `item-key`, `item-text`, `item-children` are not customizable currently.  `value` can be like `{ id: 1, name: \"test\", children: []}` .\ngroup | string | null | group name for vuedraggable. If this props not provided, drag and drop are enabled only in children.\nexpand-icon | string | 'mdi-menu-down' |mdi string for the expand icon.\n\n### Events\nName | Value  | Description\n--- | ---- | ---- \ninput | array |  Emits the array of selected items when this value changes\n\n\n### Slots\nName | Props  | Description\n--- | ---- |  ---\nappend | { item: any, open: boolean } |  Appends content after label\nlabel | { item: any, open: boolean } |  Label content\nprepend | { item: any, open: boolean } |  Prepends content before label\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuusan2go%2Fvuetify-draggable-treeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuusan2go%2Fvuetify-draggable-treeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuusan2go%2Fvuetify-draggable-treeview/lists"}