Command
New-NavTopMenu
Creates a new navigation top menu item with customizable options.
Syntax
Description
The New-NavTopMenu function creates a new navigation top menu item with various customizable options such as icon, name, href, and more.
Examples
EXAMPLE 1
New-NavTopMenu -Name "Home" -Href "/home" -IconBrands "fa fa-home" -IconColor "blue"
Creates a new navigation top menu item named "Home" with a home icon from Font Awesome Brands in blue color.EXAMPLE 2
New-NavTopMenu -Name "About" -Href "/about" -IconRegular "fa fa-info-circle" -IconColor "green"
Creates a new navigation top menu item named "About" with an info circle icon from Font Awesome Regular in green color.Parameters
- -Href String
- Specifies the URL to navigate to when the menu item is clicked.
- -IconColor String
- Specifies the color of the icon.
- -IconSolid String
- ICON SOLID
- -InternalPageID String
- Specifies the internal page ID associated with the menu item.
- Specifies the script block defining the menu item properties.
- -Name String
- Specifies the name of the menu item. This parameter is mandatory.
- -Bordered SwitchParameter
- -BorderedCircle SwitchParameter
- -FlipHorizontal SwitchParameter
- -FlipVertical SwitchParameter
- -IconMaterial String
- FontsMaterialIcon
- -PullLeft SwitchParameter
- -PullRight SwitchParameter
- -Rotate String
- Possible values:
90,180,270 - -Spinning SwitchParameter
- -SpinningReverse SwitchParameter
- -IconRegular String
- Specifies the icon for the menu item from the Font Awesome Regular collection.
- -IconBrands String
- Specifies the icon for the menu item from the Font Awesome Brands collection.
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.