New-UDTooltip missing parameters -Type & -Effect

Product: PowerShell Universal
Version: 4.0.1

Hey PSU folks,

After upgrading to 4.0.1 I’m getting errors about new-UDTooltip missing the parameters -Type & -Effect.

These parameters were working fine before hand, but now in the form I get the below error, using the below code.

2023-06-27_13-52-11

New-UDColumn -MediumSize 3 -LargeSize 2 -Content {
    New-UDTooltip -Id 'tip_timeZone' -Place top -Type info -Effect float -TooltipContent {"Central Time Zone"} -Content {
        New-UDSelect -Id 'select_power' -Label 'Automated Power Shedule:' -Option {
            New-UDSelectOption -Name 'No Power Schedule' -Value '24x7'
            New-UDSelectOption -Name 'On 7 AM, Off 7 PM' -Value 'M-F_7-19'
            New-UDSelectOption -Name 'On 8 AM, Off 8 PM' -Value 'M-F_8-20'
        }<# New-UDSelect -Id 'select_power' #> -DefaultValue 'M-F_7-19'
    }# New-UDTooltip -Id 'tip_timeZone'
}# New-UDColumn

If I remove ‘-Type info’, I get the same error, but saying no parameter matching ‘Effect’.

If I remove both ‘-Type info’ and ‘-Effect float’, everything works. But, it doesn’t look how it was intended to look.

Ideas?

Thanks,
Rob

Same problem here. This is the result of get-help

NAME
    New-UDTooltip
    
SYNOPSIS
    A tooltip component.
    
    
SYNTAX
    New-UDTooltip [[-Id] <String>] [[-Placement] <String>] [-TooltipContent] <ScriptBlock> [-Content] <ScriptBlock> [[-Sx] <Hashtable>] [-Arrow] [-FollowCursor] [[-EnterDelay] <Int32>] [[-LeaveDelay] <Int32>] 
    [<CommonParameters>]

But the documentation specifies this differently

SYNTAX
    New-UDTooltip [[-Id] <String>] [[-Place] <String>] [[-Type] <String>] [[-Effect] <String>] [-TooltipContent] <ScriptBlock> [-Content] <ScriptBlock> [<CommonParameters>]

We’re adding -Type back. We moved from an external tooltip component back to a MUI component that did not have -Type so we had to reimplement.

Note that the v4 cmdlet docs are here: https://github.com/ironmansoftware/universal-docs/blob/v4/cmdlets/New-UDTooltip.txt

2 Likes

Confirmed -Type is working again for me :slight_smile:

Thanks,
Rob