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

Namespace PSWriteHTML

Creates a top navigation bar in HTML format with customizable options.

Remarks

This function generates a top navigation bar in HTML format with customizable options such as navigation links, logo, colors, and more.

Examples

Authored help example

EXAMPLE 1


New-HTMLNavTop -NavigationLinks { 
    "Link 1", "Link 2", "Link 3" 
} -Logo "logo.png" -LogoLink "https://example.com" -LogoLinkHome -MenuItemsWidth '250px' -MenuColor 'Blue' -MenuColorBackground 'White' -HomeColor 'Red' -HomeColorBackground 'White' -HomeLink "https://example.com/home" -HomeLinkHome
Creates a top navigation bar with specified navigation links, logo, colors, and home link.
        

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-HTMLNavTop [-Convert] [-HomeColor <String>] [-HomeColorBackground <String>] [-HomeLink <String>] [-HomeLinkHome] [-Logo <String>] [-LogoLink <String>] [-LogoLinkHome] [-MenuColor <String>] [-MenuColorBackground <String>] [-MenuItemsWidth <Object>] [-NavigationLinks <ScriptBlock>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Convert SwitchParameter optionalposition: namedpipeline: False
Switch parameter to indicate if conversion is needed.
HomeColor String optionalposition: 6pipeline: False
Specifies the color of the home link text.
HomeColorBackground String optionalposition: 7pipeline: False
Specifies the background color of the home link.
HomeLink String optionalposition: 8pipeline: False
Specifies the URL for the home link.
HomeLinkHome SwitchParameter optionalposition: namedpipeline: False
Indicates whether the home link should link to the home page.
Logo String optionalposition: 1pipeline: False
Specifies the path to the logo image.
LogoLink String optionalposition: 2pipeline: False
Specifies the URL to link the logo to.
LogoLinkHome SwitchParameter optionalposition: namedpipeline: False
Indicates whether the logo should link to the home page.
MenuColor String optionalposition: 4pipeline: False
Specifies the color of the menu text.
MenuColorBackground String optionalposition: 5pipeline: False
Specifies the background color of the menu.
MenuItemsWidth Object optionalposition: 3pipeline: False
Specifies the width of the menu items.
NavigationLinks ScriptBlock optionalposition: 0pipeline: False
Specifies the script block containing the navigation links to be displayed.