Expansion Panel
Expansion Panel component for Universal Dashboard
Expansion panels contain creation flows and allow lightweight editing of an element.
An expansion panel is a lightweight container that may either stand alone or be connected to a larger surface, such as a card.

Simple Expansion Panel

1
New-UDExpansionPanelGroup -Children {
2
New-UDExpansionPanel -Title "Hello" -Children {}
3
4
New-UDExpansionPanel -Title "Hello" -Id 'expContent' -Children {
5
New-UDElement -Tag 'div' -Content { "Hello" }
6
}
7
}
Copied!
New-UDExpansionPanel
Name
Type
Description
Required
Id
String
The ID of the component. It defaults to a random GUID.
false
Title
String
The title show within the header of the expansion panel.
false
Icon
FontAwesomeIcons
An icon to show within the header of the expansion panel.
false
Children
ScriptBlock
Children components to put within the expansion panel.
false
Active
SwitchParameter
Whether the expansion panel is currently active (open).
false
Last modified 6mo ago
Copy link