[DOC] doc: improve qweb documentation

This commit is contained in:
Géry Debongnie
2019-04-25 17:24:39 +02:00
parent 2bd0719b9a
commit c405dadc1b
2 changed files with 31 additions and 23 deletions
+3
View File
@@ -82,6 +82,9 @@ widgets:
In this example, the template create a widget MyWidget just after the span. See
the [QWeb](qweb.md) documentation for more information on the `t-widget` directive.
Note that the rendering context for the template is the widget itself. This means
that the template can access `state`, `props`, `env`, or any methods defined in the widget.
## Reference
An Owl component is a small class which represent a widget or some UI element.