Posted 8 January 2021, 12:34 am EST
Hello! In SpreadJS Designer, is it possible to modify or create a custom 'Invalid Formula' modal?
Thanks!
Regards.
Forums Home / Spread / SpreadJS Topics
Posted by: lpagliaro on 8 January 2021, 12:34 am EST
Posted 8 January 2021, 12:34 am EST
Hello! In SpreadJS Designer, is it possible to modify or create a custom 'Invalid Formula' modal?Replied 11 January 2021, 6:20 pm EST
Hi Luis,
let old = GC.Spread.Sheets.Designer.MessageBox.show;
GC.Spread.Sheets.Designer.MessageBox.show = function (
text,
title,
icon,
buttons,
callback
) {
if (text === "Invalid Formula") {
designer.MessageBox.show(
"This is Custom Modal ",
"Custom Title",
2 /* warning */,
0 /* ok */,
function () {
$(".fill-content").focus();
}
);
} else {
old.apply(this, arguments);
}
};
});
Replied 12 January 2021, 7:01 am EST
Sounds good. Thank you!