Creates a top navigation bar in HTML format with customizable options.
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.
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.