For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDTreeView

Creates a new tree view.

Synopsis

Creates a new tree view.

Syntax

New-UDTreeView [[-Id] <String>] [-Node] <ScriptBlock> [[-OnNodeClicked] <Endpoint>] [[-Style] <Hashtable>] [[-ClassName] <String>] [-Expanded] [-PreventCollapse] [<CommonParameters>]

Description

Creates a new tree view.

Parameters

-Id

The ID of the component. It defaults to a random GUID.

Required?                    false
Position?                    1
Default value                [Guid]::NewGuid()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Node

A collection of root nodes to show within the tree view.

-OnNodeClicked

A script block that is called when a node is clicked. $EventData will contain the node that was clicked.

-Style

A set of CSS styles to apply to the tree view.

-ClassName

A CSS className to apply to the tree view.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?