[IMP] add t-mounted directive

closes #45
This commit is contained in:
Aaron Bohy
2019-05-10 15:03:54 +02:00
committed by Géry Debongnie
parent 8ee0973dab
commit 0aba9748c9
4 changed files with 104 additions and 1 deletions
+6
View File
@@ -19,6 +19,7 @@
- [`t-ref` directive](#t-ref-directive)
- [`t-key` directive](#t-key-directive)
- [`t-transition` directive](#t-transition-directive)
- [`t-mounted` directive](#t-mounted-directive)
- [Debugging (`t-debug` and `t-log`)](#debugging-t-debug-and-t-log)
- [White spaces](#white-spaces)
- [Root nodes](#root-nodes)
@@ -352,6 +353,11 @@ For example, a simple fade in/out effect can be done with this:
Note: more information on animations are available [here](doc/animations.md).
### `t-mounted` directive
The `t-mounted` directive allows to register a callback to execute when the node
is inserted into the DOM.
### Debugging (`t-debug` and `t-log`)
The javascript QWeb implementation provides two useful debugging directives: