node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

treez

treez

A simple tree widget inspired by tree-view where the css is copied from! using yo-yo

example

var widget = require('treez')({
  root: root,
  onSelect: (selected) => console.log('selected', selected),
  onOpen: (opened) => console.log('opened', opened)
})
window.document.body.appendChild(widget.el)

see full-example

js-standard-style

Try it out! view on requirebin