API Reference
Function
New-HTMLHierarchicalTree
Creates a hierarchical tree structure in HTML using D3.js.
Remarks
This function generates an HTML hierarchical tree structure based on the provided tree view data using D3.js library.
Examples
EXAMPLE 1
New-HTMLHierarchicalTree -TreeView {
@{
Type = 'TreeNode'
Settings = @{
id = 1
parentId = 0
name = 'Root'
description = 'Root Node'
}
}
} -Autosize
# Generates a hierarchical tree with a root node.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-HTMLHierarchicalTree [-Autosize] [-TreeView <ScriptBlock>] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- Autosize SwitchParameter
- Indicates whether the SVG should be sized based on the nodes or use configured height/width for the SVG.
- TreeView ScriptBlock
- Specifies the tree view data to be used for generating the hierarchical tree structure.