Documentation
On this page

Function · Data and Templates

createTree

Creates a native tree from hierarchical application data.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
createTree(props: TreeProps<T>): GuiElement

Parameters

NameTypeDescription
propsTreeProps<T>Root items and callbacks describing the hierarchy.

Returns

GuiElement — A TreeView element containing keyed TreeViewItem elements.

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:890 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.