Product: PowerShell Universal
Version: 2.5.4
How can I add a UDicon in a cell of a UDTable? I have added the following code, but instead of displaying the icon, it is showing as “System.Collections.Hashtable”. How can I drill down to the attributes of the item to show the actual icon?
$HealthIcon = New-UDicon -Icon 'check' -Size '2x' -Color 'green'
$Data = ([PSCustomObject]@{
Health = $HealthIcon
Server = $ServerName
})
$Columns = @(
New-UDTableColumn -Property Health -Title "Health"
New-UDTableColumn -Property ServerName -Title "ServerName"
)
New-UDTable -Data $Columns