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

Namespace PSWriteHTML

Creates a new HTML summary item with specified parameters.

Remarks

This function creates a new HTML summary item with customizable text, icons, and other visual properties.

Examples

Authored help example

EXAMPLE 1


New-HTMLSummaryItem -Text "Summary Item 1" -IconBrands "fa-windows" -IconSize 2 -IconColor "blue" -Open
        

Creates a new HTML summary item with the text "Summary Item 1", using the Windows icon brand, a size of 2, blue color, and initially open.

EXAMPLE 2


New-HTMLSummaryItem -Text "Summary Item 2" -IconRegular "fa-address-book" -IconSize 3 -IconColor "green"
        

Creates a new HTML summary item with the text "Summary Item 2", using the address book regular icon, a size of 3, and green color.

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-HTMLSummaryItem [-IconColor <String>] [-IconSize <Int32>] [-IconSolid <String>] [-NestedItems <ScriptBlock>] [-Open] [-Text <String>] [<CommonParameters>]
#
Parameter set: FontAwesomeSolid

Parameters

IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon in the summary item.
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon in the summary item.
IconSolid String optionalposition: namedpipeline: False
ICON SOLID
NestedItems ScriptBlock optionalposition: 0pipeline: False
Specifies the nested items to include within the summary item.
Open SwitchParameter optionalposition: namedpipeline: False
Indicates whether the summary item should be initially open or closed.
Text String optionalposition: namedpipeline: False
Specifies the text content of the summary item.
New-HTMLSummaryItem [-IconColor <String>] [-IconRegular <String>] [-IconSize <Int32>] [-NestedItems <ScriptBlock>] [-Open] [-Text <String>] [<CommonParameters>]
#
Parameter set: FontAwesomeRegular

Parameters

IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon in the summary item.
IconRegular String optionalposition: namedpipeline: False
Specifies the regular icon to use for the summary item. Valid values are retrieved from the available FontAwesome regular icons.
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon in the summary item.
NestedItems ScriptBlock optionalposition: 0pipeline: False
Specifies the nested items to include within the summary item.
Open SwitchParameter optionalposition: namedpipeline: False
Indicates whether the summary item should be initially open or closed.
Text String optionalposition: namedpipeline: False
Specifies the text content of the summary item.
New-HTMLSummaryItem [-IconBrands <String>] [-IconColor <String>] [-IconSize <Int32>] [-NestedItems <ScriptBlock>] [-Open] [-Text <String>] [<CommonParameters>]
#
Parameter set: FontAwesomeBrands

Parameters

IconBrands String optionalposition: namedpipeline: False
Specifies the icon brand to use for the summary item. Valid values are retrieved from the available FontAwesome brands.
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon in the summary item.
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon in the summary item.
NestedItems ScriptBlock optionalposition: 0pipeline: False
Specifies the nested items to include within the summary item.
Open SwitchParameter optionalposition: namedpipeline: False
Indicates whether the summary item should be initially open or closed.
Text String optionalposition: namedpipeline: False
Specifies the text content of the summary item.