Skip to content

Commit 3aecb39

Browse files
committed
[DOC] update integration minimal setup
The documentation did not account for the `raiseError` function added as a notification tool. closes #4353 Task: 3918013 X-original-commit: 3d4a0cd Signed-off-by: Pierre Rousseau (pro) <[email protected]> Signed-off-by: Rémi Rahir (rar) <[email protected]>
1 parent 46d08a0 commit 3aecb39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/integrating/integration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const templates = await(await fetch("../dist/o_spreadsheet.xml")).text();
1212
const env = {
1313
notifyUser: () => window.alert(content),
1414
askConfirmation: (message, confirm, cancel) => confirm(),
15+
raiseError: (content, callback) => {
16+
window.alert(content);
17+
callback?.();
18+
},
1519
};
1620
const app = new owl.App(Spreadsheet, {
1721
props: { model },

0 commit comments

Comments
 (0)