Product: PowerShell Universal
Version: 1.5.9
i have a custom button build for v.2.9.0 before and used to work perfect but trying it with V3 it shows up and everything except properties wont make it to onclick script block.
like data from column like $EvenetData.Name will be null inside onclick {}
my custom button used to use this line in the script
if ($null -ne $OnClick) {
if ($OnClick -is [scriptblock]) {
$OnClick = New-UDEndpoint -Endpoint $OnClick -Id ($Id + "onClick")
}
elseif ($OnClick -isnot [UniversalDashboard.Models.Endpoint]) {
throw "OnClick must be a script block or UDEndpoint"
}
}
hot to modify above for this custom button to work again.
Thank you.