0.6.2 • Published 3 years ago

yy-tree v0.6.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

tree

Vanilla drag-and-drop UI tree

Rationale

I needed a tree components for my tools. Most of the available visual tree APIs require vue or react. And so yy-tree was created.

Super Simple Example

const data = {
    children: [
        { name: 'fruits', children: [
            { name: 'apples', children: [] },
            { name: 'oranges', children: [
                { name: 'tangerines', children: [] },
                { name: 'mandarins', children: [] },
                { name: 'pomelo', children: [] },
                { name: 'blood orange', children: [] },
            ] }
        ]},
        { name: 'vegetables', children: [
            { name: 'brocolli', children: [] },
        ] },
    ]
}

const tree = new Tree(data, { parent: document.body })

Live Examples

https://davidfig.github.io/tree/

API Documentation

https://davidfig.github.io/tree/jsdoc/

Installation

npm i yy-tree

license

MIT License (c) 2021 YOPEY YOPEY LLC by David Figatner

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago