Command
New-HTMLNavTop
Creates a top navigation bar in HTML format with customizable options.
Syntax
Description
This function generates a top navigation bar in HTML format with customizable options such as navigation links, logo, colors, and more.
Examples
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.Parameters
- -Convert SwitchParameter
- Switch parameter to indicate if conversion is needed.
- -HomeColor String
- Specifies the color of the home link text.
- -HomeColorBackground String
- Specifies the background color of the home link.
- -HomeLink String
- Specifies the URL for the home link.
- -HomeLinkHome SwitchParameter
- Indicates whether the home link should link to the home page.
- -Logo String
- Specifies the path to the logo image.
- -LogoLink String
- Specifies the URL to link the logo to.
- -LogoLinkHome SwitchParameter
- Indicates whether the logo should link to the home page.
- Specifies the color of the menu text.
- Specifies the background color of the menu.
- Specifies the width of the menu items.
- Specifies the script block containing the navigation links to be displayed.
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.