New-UDTooltip
Synopsis
A tooltip component.
Syntax
New-UDTooltip [[-Id] <String>] [[-Placement] <String>] -TooltipContent <ScriptBlock> -Content <ScriptBlock> [[-Sx] <Hashtable>] [-Arrow] [-FollowCursor] [[-Type] <String>] [[-EnterDelay] <Int32>] [[-LeaveDelay] <Int32>] [[-Open] <Boolean>] [[-OnOpen] <Endpoint>] [[-OnClose] <Endpoint>] [-Persistent] [<CommonParameters>]
New-UDTooltip [[-Id] <String>] [[-Placement] <String>] -Text <String> -Content <ScriptBlock> [[-Sx] <Hashtable>] [-Arrow] [-FollowCursor] [[-Type] <String>] [[-EnterDelay] <Int32>] [[-LeaveDelay] <Int32>] [[-Open] <Boolean>] [[-OnOpen] <Endpoint>] [[-OnClose] <Endpoint>] [-Persistent] [<CommonParameters>]
New-UDTooltip [[-Id] <String>] [[-Placement] <String>] -RenderTooltipContent <Endpoint> -Content <ScriptBlock> [[-Sx] <Hashtable>] [-Arrow] [-FollowCursor] [[-Type] <String>] [[-EnterDelay] <Int32>] [[-LeaveDelay] <Int32>] [[-Open] <Boolean>] [[-OnOpen] <Endpoint>] [[-OnClose] <Endpoint>] [-Persistent] [<CommonParameters>]Description
A tooltip component. Tooltips can be placed over an other component to display a popup when the user hovers over the nested component.
Parameters
-Id
The ID of this component.
Required? false
Position? 1
Default value [Guid]::NewGuid()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Placement
-TooltipContent
Content to display within the tooltip.
-Content
Content that activates the tooltip when hovered.
-Sx
Theme-based styling hashtable.
-Arrow
Whether to display an arrow on the tooltip.
-FollowCursor
Whether the tooltip should follow the cursor.
-Type
The type of tooltip.
-EnterDelay
The delay before the tooltip appears in milliseconds.
-LeaveDelay
The delay before the tooltip disappears in milliseconds.
-Open
Whether the tooltip is open.
-OnOpen
An endpoint to call when the tooltip is opened.
-OnClose
An endpoint to call when the tooltip is closed.
-Persistent
-Text
Plain text to display inside the tooltip. When specified, it is rendered as a typography component. Use instead of -TooltipContent or -RenderTooltipContent.
-RenderTooltipContent
An endpoint that renders tooltip content dynamically. Use instead of -TooltipContent or -Text.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Basic Tooltip
A basic tooltip component that displays a header when hovered over.
Example 2: Placement
A tooltip component that displays a header when hovered over with a right placement.
Example 3: Persistent Tooltip
A tooltip component that displays an alert when hovered over with a persistent tooltip. Click outside the tooltip to close it.
Last updated
Was this helpful?