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

New-UDExpansionPanel

Creates an expansion panel.

Synopsis

Creates an expansion panel.

Syntax

New-UDExpansionPanel [[-Id] <String>] [[-Title] <String>] [[-Icon] <Object>] [[-Children] <ScriptBlock>] [-Active] [[-ClassName] <String>] [<CommonParameters>]

Description

Creates an expansion panel. An expansion panel can hide content that isn't necessary to view when a page is loaded.

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

-Title

The title show within the header of the expansion panel.

-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?