New-UDExpansionPanel
Creates an expansion panel.
Synopsis
Syntax
New-UDExpansionPanel [[-Id] <String>] [[-Title] <String>] [[-Icon] <Object>] [[-Children] <ScriptBlock>] [-Active] [[-ClassName] <String>] [<CommonParameters>]Description
Parameters
-Id
Required? false
Position? 1
Default value ([Guid]::NewGuid())
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Title
-Icon An icon to show within the header of the expansion panel.Required? falsePosition? 3Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false-ChildrenChildren components to put within the expansion panel.Required? falsePosition? 4Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false -Active [<SwitchParameter>] Whether the expansion panel is currently active (open).Required? falsePosition? namedDefault value FalseAccept pipeline input? falseAliasesAccept wildcard characters? false-ClassNameRequired? falsePosition? 5Default valueAccept pipeline input? falseAliasesAccept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).Outputs-------------------------- EXAMPLE 1 --------------------------PS > Creates an expansion panel with some content.New-UDExpansionPanel -Title "Hello" -Id 'expContent' -Content { New-UDElement -Tag 'div' -id 'expContentDiv' -Content { "Hello" }}
Last updated
Was this helpful?