Hi,
I have the below code
New-UDDynamic -Id “Application_Server_Names” -Content {
New-UDExpansionPanelGroup -Children {
New-UDExpansionPanel -Title "Application Servers" -Children {
New-UDList -Children {
foreach ($Server in $Cache:ServerNames) {
New-UDElement -Tag 'div' -Content {
$Icon = New-UDIcon -Icon "server" -Size sm -Regular -Style @{color = '#0d1421' }
$CheckedIcon = New-UDIcon -Icon "server" -Size sm
New-UDCheckBox -id "Application_servers_$($Server)" -Icon $Icon -CheckedIcon $CheckedIcon -Style @{color = '#2196f3' } -Label "$($Server)" -LabelPlacement end -OnChange {
Show-UDToast -Message $EventData -Duration 600
}
}
}
}
}
}
}
$CacheServerNames - contains a list of server names. i would like to get the checked item values. I have seen all the examples only seems to show how to get the checked item with the attributes property. not sure what i am missing . reading some old posts i found that i can display $eventData to find what are the properties but this ends up blank. using the latest version of powershell universal
any help would be much appreciated
TIA