New-UDTooltip not working for me

Hmm, I think I got it working like this in v2, am I missing anything?

New-UDTooltip -Place top -Type info -Effect solid -TooltipContent {
    New-UDIcon -Icon dashboard -Size lg

New-UDTooltip -Place top -Type info -Effect solid -Content {
    New-UDIcon -Icon dashboard -Size lg

Plan is to grab icon example code from poshud page and add tooltip to each icon with its name, would help immensely while coding :slight_smile:

I’m now using below, which works better actually, however I intend to use tooltips soon, so question is still relevant :slight_smile:

New-UDTextbox -Id 'txtIconSearch' -Label 'Search'

New-UDButton -Text 'Search' -OnClick {
    Sync-UDElement -Id 'icons'

New-UDElement -tag 'p' -Content {}

New-UDDynamic -Id 'icons' -Content {
    $Icons = [Enum]::GetNames([UniversalDashboard.Models.FontAwesomeIcons])
    $IconSearch = (Get-UDElement -Id 'txtIconSearch').value
    if ($null -ne $IconSearch -and $IconSearch -ne '')
        $Icons = $Icons.where({ $_ -match $IconSearch})

    New-UDGrid -Container -Content {
        foreach($icon in $icons) {
            New-UDGrid -Item -ExtraSmallSize 2 -Content {
                New-UDIcon -Icon $icon -Size lg
                New-UDTypography -Text $icon -Variant display4
} -LoadingComponent {

In your example you’re only using -tooltipcontent or -content, but i think both need to be specified:

New-UDTooltip -TooltipContent {
        new-udhtml -markup "Test"
    } -content {        
        New-UDIcon -Icon server

The above works for me in the latest V3 version.

1 Like

@insomniacc ok that actually makes sense, thanks bud

Hey guys,

I know this post is couple months old but it kind of relate to my question. Is there a way to use New-UDTooltip within New-UDtableColumn or wrap around it?