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

New-UDExpansionPanelGroup

Synopsis

The expansion panel component allows the user to show and hide sections of related content on a page.

Syntax

New-UDExpansionPanelGroup [-Id <String>] [[-Children] <ScriptBlock>] [-Type <String>] [-ClassName <String>] [<CommonParameters>]

Description

Creates a group of expansion panels. Use New-UDExpansionPanel to create children for a group.

Parameters

-Id

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

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

-Children

Expansion panels to include in this group.

-Type

The type of expansion panel group.

-ClassName

A CSS class to apply to the expansion panel group.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Outputs

Examples

Example 1: Expansion Panel

Creates an expansion panel group.

Example 2: Accordion

Creates an accordion style expansion panel group.

Example 3: Icons

Creates an expansion panel group with icons.

[Component("Expansion Panel", "Expand", "Creates a new card.")]

Last updated

Was this helpful?