web-component-dom-tree

1.0.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i web-component-dom-tree

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • emolr