liquor-tree
Liquor Tree
A Vue tree component that allows you to present hierarchically organized data in a nice and logical manner.
Features
- drag&drop
- mobile friendly
- events for every action
- flexible configuration
- any number of instances per page
- multi selection
- keyboard navigation
- filtering
- sorting
- integration with Vuex
Installation
Npm:
$ npm install liquor-tree
Yarn:
$ yarn add liquor-tree
Live Playground
To run that demo on your own computer:
- Clone this repository
npm installnpm run buildnpm run storybook- Visit
http://localhost:9001/
There are a lot of examples for you. All sources of stories are located in liquor-tree/docs/storybook/stories.
Usage
<!-- Vue Component -->
<template>
<tree
:data="items"
:options="options"
ref="tree"
/>
</template>
<script>
import Vue from 'Vue'
import LiquorTree from 'liquor-tree'
Vue.use(LiquorTree)
export default {
...
data() {
return {
items: [
{text: 'Item 1'},
{text: 'Item 2'},
{text: 'Item 3', children: [
{text: 'Item 3.1'},
{text: 'Item 3.2'}
]}
],
options: {
checkbox: true
}
}
}
...
}
</script>
Development
Check out the package.jsons script section. There are 2 scripts:
npm run dev- it will open browser and you can play with codenpm run build- it will craete a module file inproductionmode
License
Related Packages
@bimetal/tree-vue-components
Default Vue 3 tree / treeview — multi-select, expand/collapse, tri-state checkbo...
1,849
@widgetjs/tree
a lightweight tree widget, compatible with originaljs/react/vue, 9.6kb size for...
79,956
160
Version History
| Version | Released | License |
|---|---|---|
| 1.0.1 | ||
| 1.0.0 | ||
| 0.2.70 | MIT | |
| 0.2.69 | MIT | |
| 0.2.68 | ||
| 0.2.67 | ||
| 0.2.66 | ||
| 0.2.65 | ||
| 0.2.63 | ||
| 0.2.62 | ||
| 0.2.61 | ||
| 0.2.60 | ||
| 0.2.59 | ||
| 0.2.58 | ||
| 0.2.57 | ||
| 0.2.56 | ||
| 0.2.55 | ||
| 0.2.54 | ||
| 0.2.53 | ||
| 0.2.52 | ||
| 0.2.51 | ||
| 0.2.50 | ||
| 0.2.49 | ||
| 0.2.48 | ||
| 0.2.47 | ||
| 0.2.46 | ||
| 0.2.45 | ||
| 0.2.44 | ||
| 0.2.43 | ||
| 0.2.42 |
Showing the latest 30 of 88. See every release on npm
Pre-releases (3)
| Version | Released | License |
|---|---|---|
| 0.1.0-alpha.2 | ||
| 0.1.0-alpha.1 | ||
| 0.1.0-alpha |