tree-view

An implementation of a tree as a web-component.

Usage

Live Editor
Result
Root Item 1 Sub-item 1Sub-item 2Item 2

Applying custom styles

import { customElement } from "@microsoft/fast-element";
import { TreeView, TreeViewTemplate as template } from "@microsoft/fast-foundation";
import { TreeViewStyles as styles } from "./tree-view.styles";
@customElement({
name: "fast-tree-view",
template,
styles,
})
export class FASTTreeView extends TreeView {}