Files
owl/doc/utils.md
T
2019-05-19 08:21:22 +02:00

655 B

🦉 Utils 🦉

Owl export a few useful utility functions, to help with common issues. Those functions are all available in the owl.utils namespace.

Content

whenReady

The function whenReady is useful to register some code that need to be executed as soon as the document (page) is ready:

owl.utils.whenReady(function () {
    const qweb = new owl.QWeb();
    const app = new App({ qweb });
    app.mount(document.body);
});

loadJS

loadTemplates

escape

debounce