java-spring: onRequestSelectSpreadsheet/setRequestedSpreadsheet

This commit is contained in:
sshakndr
2023-09-28 12:14:33 +07:00
parent 77546c2f76
commit e280291f80
3 changed files with 16 additions and 12 deletions

View File

@ -114,9 +114,12 @@
docEditor.setRevisedFile([[${dataCompareFile}]]);
};
var dataSpreadsheet = [[${dataSpreadsheet}]];
// the user is trying to select recipients data by clicking the Mail merge button
var onRequestMailMergeRecipients = function (event) {
docEditor.setMailMergeRecipients([[${dataMailMergeRecipients}]]);
var onRequestSelectSpreadsheet = function (event) {
const temp = Object.assign({}, {"c": event.data.c}, dataSpreadsheet);
docEditor.setRequestedSpreadsheet(temp);
};
config = [[${model}]];
@ -241,7 +244,7 @@
"onMetaChange": onMetaChange,
"onRequestInsertImage": onRequestInsertImage,
"onRequestCompareFile": onRequestCompareFile,
"onRequestMailMergeRecipients": onRequestMailMergeRecipients,
"onRequestSelectSpreadsheet": onRequestSelectSpreadsheet,
"onRequestRestore": onRequestRestore,
"onRequestHistory": onRequestHistory,
"onRequestHistoryData": onRequestHistoryData,