web-component-dom-tree
A webcomponent to generate a tree list
Last updated 3 years ago by emolr .
ISC · Original npm · Tarball · package.json
$ cnpm install web-component-dom-tree 
SYNC missed versions from official npm registry.

DOM Tree

A web component to loop a nested list.

<dom-tree is-href path-key="path" title-key="title"></dom-tree>
<script>
    const el = document.querySelector('dom-tree');

    el.items = [{
        path: 'my/path.html',
        title: 'My Path'
    }, {
        path: 'my/other/path/',
        title: 'My Other Path'
    }];

    // Invoke render after items are sat.
    el.render();
</script>

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |