Creates a new HTML navigation menu with customizable options.
Examples
Authored help example
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.
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
- DisableBackgroundFading SwitchParameter optionalposition: namedpipeline: False
- Switch to disable background fading when the side navigation drawer is open.
- DisableClickToClose SwitchParameter optionalposition: namedpipeline: False
- Switch to disable closing opened items when the user clicks outside of them.
- DisableHamburger SwitchParameter optionalposition: namedpipeline: False
- Switch to disable the hamburger menu icon.
- DisableNavControls SwitchParameter optionalposition: namedpipeline: False
- Switch to disable navigation controls for adjusting drawer width and height.
- DisableStickyMenubar SwitchParameter optionalposition: namedpipeline: False
- Switch to make the menubar static instead of sticky.
- FixedMenu SwitchParameter optionalposition: namedpipeline: False
- Switch to make the menu fixed.
- LeftMenuBackgroundColor String optionalposition: 7pipeline: False
- Specifies the background color of the left menu.
- LeftMenuColor String optionalposition: 8pipeline: False
- Specifies the text color of the left menu.
- Logo String optionalposition: 1pipeline: False
- Specifies the path to the logo image to be displayed in the menu.
- 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.
- MenuWidth Int32 optionalposition: 3pipeline: False
- Specifies the width of the menu (default is 270).
- MenuWidthExtended Int32 optionalposition: 4pipeline: False
- Specifies the extended width of the menu (default is 320).
- NavigationLinks ScriptBlock optionalposition: 0pipeline: False
- Specifies the script block containing navigation links to be displayed in the menu.
- ResizeContent SwitchParameter optionalposition: namedpipeline: False
- Switch to enable content resizing.
- StartMenuOpen SwitchParameter optionalposition: namedpipeline: False
- Switch to determine if the menu should start open.
- TopBarBackGroundColor String optionalposition: 5pipeline: False
- Specifies the background color of the top bar.
- TopBarColor String optionalposition: 6pipeline: False
- Specifies the text color of the top bar.