New-UDLink
SYNOPSIS
Creates an HTML link.
SYNTAX
New-UDLink [[-Id] <String>] [[-Text] <String>] [[-Url] <String>] [[-Icon] <String>] [-OpenInNewWindow]
[[-FontColor] <DashboardColor>] [[-OnClick] <Object>] [<CommonParameters>]
DESCRIPTION
Creates an HTML link.
EXAMPLES
Example 1
New-UDLink -Text "PowerShell Pro Tools" -Url "https://www.poshtools.com"
Creates an HTML link to PoshTools.com
PARAMETERS
-FontColor
The font color for this link.
Type: UniversalDashboard.Models.DashboardColor
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Icon
A FontAwesome icon to display before the link text.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Id
The ID of this link element.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OnClick
The click handler for when this link is clicked.
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OpenInNewWindow
Opens the link in a new window.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Text
Text for the link.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
Url for the link.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.