Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-AccordionItem

Namespace PSWriteHTML

Creates a new accordion item with specified header text and panel text.

Remarks

This function creates a new accordion item with the provided header text and panel text. The header text is displayed as a clickable button to toggle the visibility of the panel text.

Examples

Authored help example

EXAMPLE 1


New-AccordionItem -HeaderText "Header 1" -HeaderAlign "left" -PanelText "Panel 1 Text"
        

Creates a new accordion item with the header text "Header 1" aligned to the left and panel text "Panel 1 Text".

EXAMPLE 2


New-AccordionItem -HeaderText "Header 2" -HeaderAlign "center" -PanelText "Panel 2 Text"
        

Creates a new accordion item with the header text "Header 2" aligned to the center and panel text "Panel 2 Text".

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-AccordionItem [-HeaderAlign <String>] [-HeaderText <String>] [-PanelText <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

HeaderAlign String optionalposition: 1pipeline: False
The alignment of the header text. Accepted values are 'left', 'center', or 'right'.
HeaderText String optionalposition: 0pipeline: False
The text to be displayed as the header of the accordion item.
PanelText String optionalposition: 2pipeline: False
The text to be displayed in the panel of the accordion item.