Juicy Polymer Element, that renders a tree view of given Document Fragment
Install the component using Bower:
$ bower install juicy-dom-tree-view --save
Or download as ZIP.
-
Import Web Components' polyfill, if needed:
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/juicy-dom-tree-view/juicy-dom-tree-view.html">
-
Start using it!
<juicy-dom-tree-view doc="{{DocumentFragment}}"></juicy-dom-tree-view>
Name | Options | Default | Description |
---|---|---|---|
doc |
DocumentFragment | Document Fragment to be rendered | |
multiple |
Boolean | false |
Should multi select (with ctrl+click) be available |
fake-v1 |
Boolean | false |
Should we fake Shadow DOM v1 and render <content> as <slot> |
wrapped-content |
Boolean | false |
Should we support <cotnent> tags wrapped for styling with <div content-wrapper> and display it as single <slot> for simplicity. |
Name | Description |
---|---|
--juicy-dom-tree-selected-background-color |
Background color of selected element |
juicy-dom-tree-view
is a hybrid element.
For detailed changelog, check Releases.
MIT