Product: PowerShell Universal
Version: 5.3.2
Set-UDElement
is a major boon for adjusting elements on the fly with event-based execution! However, one of my requirements for an application I’m building is that the ID can be changed dynamically. Trying to run:
New-UDElement -Id "targetElement" -Content {
"Hello, World"
}
New-UDButton -Text "Update Element" -OnClick {
Set-UDElement -Id "targetElement" -Properties @{ id = "updatedTargetElement" }
}
Does not seem to apply. Is the entire DOM node available as properties to adjust on the element? I’ve resorted to temporarily using a JavaScript workaround, which is doing the trick, but I’d like to keep those minimal if I can. If it’s not implemented for a reason, I understand and can leave things the way they are. If it is implemented, and I’m going about it the wrong way, please let me know that I may adjust accordingly.