Command
New-NavItem
Creates a new navigation item with specified parameters.
Syntax
Description
The New-NavItem function creates a new navigation item with the specified parameters, such as name, href, type, icon, and color.
Examples
EXAMPLE 1
New-NavItem -Name "Home" -Href "/" -Type "Menu" -IconBrands "fa fa-home" -IconColor "blue"
Creates a new navigation item named "Home" with a link to the root ("/"), type "Menu", using a home icon from FontAwesome Brands with blue color.EXAMPLE 2
New-NavItem -Name "About" -Href "/about" -Type "Grid" -IconRegular "far fa-address-card" -IconColor "green"
Creates a new navigation item named "About" with a link to "/about", type "Grid", using an address card icon from FontAwesome Regular with green color.EXAMPLE 3
New-NavItem -Name "Contact" -Href "/contact" -Type "Menu" -FontMaterial "person" -IconColor "red"
Creates a new navigation item named "Contact" with a link to "/contact", type "Menu", using a person icon from Material Design Icons with red color.Parameters
- -Href String
- -IconColor String
- -IconSolid String
- ICON SOLID
- -InternalPageID String
- -Name String
- -Type String
- Possible values:
Grid,Menu - -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
- ICON REGULAR
- -IconBrands String
- ICON BRANDS
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.