TreeView
HTML
<x-treeview height="200px" columnWidth="300px"></x-treeview>
JavaScript
const xtreeview = document.querySelector('x-treeview');
xtreeview.setTreeDataModel(model);
xtreeview.onSelect = (treeview, node) => {
const result = document.getElementById('selected-node');
result.textContent = JSON.stringify(node, null, 4);
};