Creates a new navigation link with customizable options for nested links.
Examples
Authored help example
EXAMPLE 1
New-NavLink -NestedLinks { New-NavLink -Name "Sublink 1" -Href "/sublink1" } -Name "Main Link" -NameColor "blue" -Href "/mainlink" -InternalPageID "main" -IconColor "green"
Creates a new navigation link named "Main Link" with a nested link named "Sublink 1" in blue name color, green icon color, navigating to "/mainlink" with internal page ID "main".
EXAMPLE 2
New-NavLink -NestedLinks { New-NavLink -Name "Sublink 2" -Href "/sublink2" } -Name "Another Link" -NameColor "red" -Href "/anotherlink" -InternalPageID "another" -IconColor "yellow"
Creates a new navigation link named "Another Link" with a nested link named "Sublink 2" in red name color, yellow icon color, navigating to "/anotherlink" with internal page ID "another".
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: FontAwesomeSolid
Parameters
- Href String optionalposition: namedpipeline: False
- Specifies the URL to navigate to when the navigation link is clicked.
- IconColor String optionalposition: namedpipeline: False
- Specifies the color of the icon for the navigation link.
- IconSolid String optionalposition: namedpipeline: False
- ICON SOLID
- InternalPageID String optionalposition: namedpipeline: False
- Specifies the internal page ID associated with the navigation link.
- Name String requiredposition: namedpipeline: False
- Specifies the name of the navigation link. This parameter is mandatory.
- NameColor String optionalposition: namedpipeline: False
- Specifies the color of the navigation link name.
- NestedLinks ScriptBlock optionalposition: 0pipeline: False
- Specifies the script block defining the nested link properties.
Parameter set: FontMaterial
Parameters
- Bordered SwitchParameter optionalposition: namedpipeline: False
- BorderedCircle SwitchParameter optionalposition: namedpipeline: False
- FlipHorizontal SwitchParameter optionalposition: namedpipeline: False
- FlipVertical SwitchParameter optionalposition: namedpipeline: False
- Href String optionalposition: namedpipeline: False
- Specifies the URL to navigate to when the navigation link is clicked.
- IconColor String optionalposition: namedpipeline: False
- Specifies the color of the icon for the navigation link.
- IconMaterial String optionalposition: namedpipeline: False
- FontsMaterialIcon
- InternalPageID String optionalposition: namedpipeline: False
- Specifies the internal page ID associated with the navigation link.
- Name String requiredposition: namedpipeline: False
- Specifies the name of the navigation link. This parameter is mandatory.
- NameColor String optionalposition: namedpipeline: False
- Specifies the color of the navigation link name.
- NestedLinks ScriptBlock optionalposition: 0pipeline: False
- Specifies the script block defining the nested link properties.
- PullLeft SwitchParameter optionalposition: namedpipeline: False
- PullRight SwitchParameter optionalposition: namedpipeline: False
- Rotate String optionalposition: namedpipeline: Falsevalues: 3
- Possible values:
90, 180, 270
- Spinning SwitchParameter optionalposition: namedpipeline: False
- SpinningReverse SwitchParameter optionalposition: namedpipeline: False
Parameter set: FontAwesomeRegular
Parameters
- Href String optionalposition: namedpipeline: False
- Specifies the URL to navigate to when the navigation link is clicked.
- IconColor String optionalposition: namedpipeline: False
- Specifies the color of the icon for the navigation link.
- IconRegular String optionalposition: namedpipeline: False
- ICON REGULAR
- InternalPageID String optionalposition: namedpipeline: False
- Specifies the internal page ID associated with the navigation link.
- Name String requiredposition: namedpipeline: False
- Specifies the name of the navigation link. This parameter is mandatory.
- NameColor String optionalposition: namedpipeline: False
- Specifies the color of the navigation link name.
- NestedLinks ScriptBlock optionalposition: 0pipeline: False
- Specifies the script block defining the nested link properties.
Parameter set: FontAwesomeBrands
Parameters
- Href String optionalposition: namedpipeline: False
- Specifies the URL to navigate to when the navigation link is clicked.
- IconBrands String optionalposition: namedpipeline: False
- ICON BRANDS
- IconColor String optionalposition: namedpipeline: False
- Specifies the color of the icon for the navigation link.
- InternalPageID String optionalposition: namedpipeline: False
- Specifies the internal page ID associated with the navigation link.
- Name String requiredposition: namedpipeline: False
- Specifies the name of the navigation link. This parameter is mandatory.
- NameColor String optionalposition: namedpipeline: False
- Specifies the color of the navigation link name.
- NestedLinks ScriptBlock optionalposition: 0pipeline: False
- Specifies the script block defining the nested link properties.