Js onclick event

Any way I could use the js event onclick on buttons and links as it's seems it's the only way that I can trigger a write to clipboard on Safari?

Any call from JS interop results in:

Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

Thanks.

You can define onclick attribute for RadzenLink:

<RadzenLink onclick="alert('test')" ... />

however for RadzenButton this event is handled internally and you can use onmousedown instead:

<RadzenButton onmousedown="alert('test')"  ... />
1 Like