Product: PowerShell Universal
Version: 3.2.6
I’m having trouble understanding how to get a table to refresh, between old forums posts, new docs, and github. I have been following this: Table - PowerShell Universal
Can anyone help me understand why this isn’t refreshing?
Here’s an extremely simplified version, let me know if I am missing something:
$page = new-udpage -name 'page' -content {
New-UDDynamic -Id 'dynamic' -content {
$columns = @(
new-udtablecolumn -property rename -render {
new-udbutton -onclick {
sync-udelement -Id 'dynamic'
}
}
new-udtablecolumn -property column2
)
new-udtable -columns $columns -loaddata {
$logic = get-date #logic happens here
}
}
}
$logic
is not refreshing for me until much later, minutes or longer.