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

Aliases: New-HTMLNavTopMenu
Namespace PSWriteHTML
Aliases
New-HTMLNavTopMenu

Creates a new navigation top menu item with customizable options.

Remarks

The New-NavTopMenu function creates a new navigation top menu item with various customizable options such as icon, name, href, and more.

Examples

Authored help example

EXAMPLE 1


New-NavTopMenu -Name "Home" -Href "/home" -IconBrands "fa fa-home" -IconColor "blue"
Creates a new navigation top menu item named "Home" with a home icon from Font Awesome Brands in blue color.
        

EXAMPLE 2


New-NavTopMenu -Name "About" -Href "/about" -IconRegular "fa fa-info-circle" -IconColor "green"
Creates a new navigation top menu item named "About" with an info circle icon from Font Awesome Regular in 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-NavTopMenu [-Href <String>] [-IconColor <String>] [-IconSolid <String>] [-InternalPageID <String>] [-MenuItem <ScriptBlock>] -Name <String> [<CommonParameters>]
#
Parameter set: FontAwesomeSolid

Parameters

Href String optionalposition: namedpipeline: False
Specifies the URL to navigate to when the menu item is clicked.
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconSolid String optionalposition: namedpipeline: False
ICON SOLID
InternalPageID String optionalposition: namedpipeline: False
Specifies the internal page ID associated with the menu item.
MenuItem ScriptBlock optionalposition: 0pipeline: False
Specifies the script block defining the menu item properties.
Name String requiredposition: namedpipeline: False
Specifies the name of the menu item. This parameter is mandatory.
New-NavTopMenu [-Bordered] [-BorderedCircle] [-FlipHorizontal] [-FlipVertical] [-Href <String>] [-IconColor <String>] [-IconMaterial <String>] [-InternalPageID <String>] [-MenuItem <ScriptBlock>] -Name <String> [-PullLeft] [-PullRight] [-Rotate <90|180|270>] [-Spinning] [-SpinningReverse] [<CommonParameters>]
#
Parameter set: FontMaterial

Parameters

Bordered SwitchParameter optionalposition: namedpipeline: False
BorderedCircle SwitchParameter optionalposition: namedpipeline: False
FlipHorizontal SwitchParameter optionalposition: namedpipeline: False
FlipVertical SwitchParameter optionalposition: namedpipeline: False
Href String optionalposition: namedpipeline: False
Specifies the URL to navigate to when the menu item is clicked.
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconMaterial String optionalposition: namedpipeline: False
FontsMaterialIcon
InternalPageID String optionalposition: namedpipeline: False
Specifies the internal page ID associated with the menu item.
MenuItem ScriptBlock optionalposition: 0pipeline: False
Specifies the script block defining the menu item properties.
Name String requiredposition: namedpipeline: False
Specifies the name of the menu item. This parameter is mandatory.
PullLeft SwitchParameter optionalposition: namedpipeline: False
PullRight SwitchParameter optionalposition: namedpipeline: False
Rotate String optionalposition: namedpipeline: Falsevalues: 3
Possible values: 90, 180, 270
Spinning SwitchParameter optionalposition: namedpipeline: False
SpinningReverse SwitchParameter optionalposition: namedpipeline: False
New-NavTopMenu [-Href <String>] [-IconColor <String>] [-IconRegular <String>] [-InternalPageID <String>] [-MenuItem <ScriptBlock>] -Name <String> [<CommonParameters>]
#
Parameter set: FontAwesomeRegular

Parameters

Href String optionalposition: namedpipeline: False
Specifies the URL to navigate to when the menu item is clicked.
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconRegular String optionalposition: namedpipeline: False
Specifies the icon for the menu item from the Font Awesome Regular collection.
InternalPageID String optionalposition: namedpipeline: False
Specifies the internal page ID associated with the menu item.
MenuItem ScriptBlock optionalposition: 0pipeline: False
Specifies the script block defining the menu item properties.
Name String requiredposition: namedpipeline: False
Specifies the name of the menu item. This parameter is mandatory.
New-NavTopMenu [-Href <String>] [-IconBrands <String>] [-IconColor <String>] [-InternalPageID <String>] [-MenuItem <ScriptBlock>] -Name <String> [<CommonParameters>]
#
Parameter set: FontAwesomeBrands

Parameters

Href String optionalposition: namedpipeline: False
Specifies the URL to navigate to when the menu item is clicked.
IconBrands String optionalposition: namedpipeline: False
Specifies the icon for the menu item from the Font Awesome Brands collection.
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
InternalPageID String optionalposition: namedpipeline: False
Specifies the internal page ID associated with the menu item.
MenuItem ScriptBlock optionalposition: 0pipeline: False
Specifies the script block defining the menu item properties.
Name String requiredposition: namedpipeline: False
Specifies the name of the menu item. This parameter is mandatory.