Passing Custom function to default error message OK button

WebViewer Version: 10.6.0

Do you have an issue with a specific file(s)? yes
Can you reproduce using one of our samples or online demos? not sure
Are you using the WebViewer server? no
Does the issue only happen on certain browsers? no
Is your issue related to a front-end framework? yes
Is your issue related to annotations? no

Please give a brief summary of your issue:
(Think of this as an email subject)

for few of the file formats (i.e. .xltx), user is facing a message box “Error Loading Document”, and this dialog message box has OK button in it, we need to add a functionality to that default OK button.
Not just for this particular error message box, but for any error box, we need to add a function to it’s OK button.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

do take a look at below attched file.
sample (1).xltx (9.6 KB)

Please provide a link to a minimal sample where the issue is reproducible:

Hello Arjun,

We have a function in our API to add our own custom error box here: Apryse WebViewer Namespace: UI

We also have a load error event for document load error handling here: Loading-events | Apryse Documentation

Please let me know if this works for you!

Regards,
Luke