Command
New-HTMLNav
Creates a new HTML navigation menu with customizable options.
Syntax
Description
This function creates a new HTML navigation menu with various customization options such as navigation links, logo, colors, and menu settings.
Examples
EXAMPLE 1
New-HTMLNav -NavigationLinks { 'Home', 'About', 'Services' } -Logo 'logo.png' -LogoLink 'https://example.com' -TopBarBackGroundColor 'blue' -TopBarColor 'white' -LeftMenuBackgroundColor 'black' -LeftMenuColor 'white'Creates a new HTML navigation menu with specified navigation links and custom logo, colors, and menu settings.
Parameters
- -DisableBackgroundFading SwitchParameter
- Switch to disable background fading when the side navigation drawer is open.
- -DisableClickToClose SwitchParameter
- Switch to disable closing opened items when the user clicks outside of them.
- -DisableHamburger SwitchParameter
- Switch to disable the hamburger menu icon.
- Switch to disable navigation controls for adjusting drawer width and height.
- Switch to make the menubar static instead of sticky.
- Switch to make the menu fixed.
- Specifies the background color of the left menu.
- Specifies the text color of the left menu.
- -Logo String
- Specifies the path to the logo image to be displayed in the menu.
- -LogoLink String
- Specifies the URL to link the logo to.
- -LogoLinkHome SwitchParameter
- Indicates whether the logo should link to the home page.
- Specifies the width of the menu (default is 270).
- Specifies the extended width of the menu (default is 320).
- Specifies the script block containing navigation links to be displayed in the menu.
- -ResizeContent SwitchParameter
- Switch to enable content resizing.
- Switch to determine if the menu should start open.
- -TopBarBackGroundColor String
- Specifies the background color of the top bar.
- -TopBarColor String
- Specifies the text color of the top bar.
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.