Hi, I’m trying to create a Card that users click on and navigate to x or y, just like New-UdButton -OnClick or -Href.
I followed these and keep bumping into errors, does anybody have a working sample? Thanks!
Hi, I’m trying to create a Card that users click on and navigate to x or y, just like New-UdButton -OnClick or -Href.
I followed these and keep bumping into errors, does anybody have a working sample? Thanks!
This works for me.
New-UDElement -tag div -Attributes @{
style = @{
cursor = "pointer"
}
onClick = {
Invoke-UDRedirect "https://ironmansoftware.com"
}
} -Content {
New-UDCard -Title 'Click Me' -Content {
"Yes"
}
}
That worked like a charm. Thanks Adam! You’re a legend.