diff --git a/content/developer/tutorials/discover_js_framework/01_owl_components.rst b/content/developer/tutorials/discover_js_framework/01_owl_components.rst index 112d60296..6c4f4d29e 100644 --- a/content/developer/tutorials/discover_js_framework/01_owl_components.rst +++ b/content/developer/tutorials/discover_js_framework/01_owl_components.rst @@ -487,8 +487,8 @@ The final touch is to let the user delete a todo. .. _tutorials/discover_js_framework/generic_card: -13. Generic card with slots -=========================== +13. Generic `Card` with slots +============================= In a :ref:`previous exercise `, we built a simple `Card` component. But it is honestly quite limited. What if we want diff --git a/content/developer/tutorials/discover_js_framework/01_owl_components/component_lifecycle.svg b/content/developer/tutorials/discover_js_framework/01_owl_components/component_lifecycle.svg new file mode 100644 index 000000000..e3767e555 --- /dev/null +++ b/content/developer/tutorials/discover_js_framework/01_owl_components/component_lifecycle.svg @@ -0,0 +1 @@ +
destruction
onWillUnmount
onWillDestroy
removed from DOM
updates
(onWillUpdateProps)
render
onWillPatch
patch DOM
onPatched
creation
setup
onWillStart
render
mount (in DOM)
onMounted
\ No newline at end of file diff --git a/content/developer/tutorials/discover_js_framework/02_build_a_dashboard.rst b/content/developer/tutorials/discover_js_framework/02_build_a_dashboard.rst index 30eee7a9b..813a6add0 100644 --- a/content/developer/tutorials/discover_js_framework/02_build_a_dashboard.rst +++ b/content/developer/tutorials/discover_js_framework/02_build_a_dashboard.rst @@ -66,8 +66,8 @@ result. - `Example: use of Layout in kanban view <{GITHUB_PATH}/addons/web/static/src/views/kanban/kanban_controller.xml>`_ -Services -======== +Theory: Services +================ In practice, every component (except the root component) may be destroyed at any time and replaced (or not) with another component. This means that each component internal state is not persistent. diff --git a/content/developer/tutorials/master_odoo_web_framework.rst b/content/developer/tutorials/master_odoo_web_framework.rst index cdc67e10f..c35d63781 100644 --- a/content/developer/tutorials/master_odoo_web_framework.rst +++ b/content/developer/tutorials/master_odoo_web_framework.rst @@ -17,7 +17,7 @@ projects, each focusing on different features of Odoo. .. note:: Each of these chapters can be done independantly, in any order. Also, be aware that some of them - are not simple and may take a few hours to complete. + cover a lot of material, so they may be quite long. The first project is about building a `clicker game `_. While working on it, you will learn various aspects of the web framework: systray, command palette,