WebViewer Version:
8.3.1
Do you have an issue with a specific file(s)?
No
Can you reproduce using one of our samples or online demos?
yes
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?
No, don’t think so
Is your issue related to annotations?
No
Please give a brief summary of your issue:
WebViewer 8.3.1: showWarningMessage - Cancel Button Missing
Please describe your issue and provide steps to reproduce it:
I upgrade from WebViewer 8.1.0 and the WebViewer method showWarningMessage
does not show any cancel button as in version 8.1.0. Maybe the API changed but in this case, the documentation maybe outdated.
My Code:
const result = await ui.showWarningMessage({
title: i18n["DIALOG.MODIFIED.TITLE"],
message: i18n["DIALOG.MODIFIED.MESSAGE"],
confirmBtnText: i18n["DIALOG.MODIFIED.DISCARD"],
onConfirm: () => {
resolve(true);
},
onCancel: () => {
resolve(false);
},
});