React to powershell event handeling

how do we handle events?


it have a couple of onplay onpause and the like, but how do I “parse” this between react and powershell?

In PowerShell, you need to accept a script block or endpoint so that it gets registered with UD. This is how the checkbox is doing it.

In JavaScript, you need to use the UniversalDashboard global object and publish the element-event message. This will send it back to the server to invoke the endpoint.

1 Like

Oh sweet ! thanks man! looking forward to play with it :slight_smile: