I have a UDTable located inside a UDDynamic area. If I remove a row by clicking on a button and perform a Sync-UDElement it works great. The table refreshes fine.
I’d like to add the ability for a user to simply click on a refresh button so that updates made outside of the App will be displayed. I added the -ShowFresh option to the New-UDTable line and the refresh button now appears. But when I click on it, it gets greyed out and nothing happens. I also do not see an -OnRefresh event for New-UDTable so where would we put the Sync-UDElement that is needed when the user clicks on the refresh button?
For now I added a button which has the onclick event and added the Sync-UDElement there and that works fine. but not as elegant as using the refresh button that is part of the UDTable control.
Product: PowerShell Universal
Version: 5.4.3