diff options
| author | Jeremy Kersten <jke@odoo.com> | 2016-04-21 14:23:22 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2016-04-27 16:47:51 +0200 |
| commit | 679f14dc5950c340023cfda2a001fc106232de6c (patch) | |
| tree | 4531389c2f117e75c982e2aa9d00125adfb864e7 /addons/web/static/src/js/framework/session_instance.js | |
| parent | bb8f0f1fc3d0f5574938019ca69cc917a55e7962 (diff) | |
[ADD] base: view inheritance with wrapping support
When using the inheritance spec `position="replace"`,
the framework will now support a text node exactly
equal to `$0` and will replace it with the node
that was matched by the inheritance locator.
Given an original view equal to this:
```
<div class="foo">
<p class="bar">the paragraph</p>
</div>
```
And an inherited view with the following inheritance spec:
```
<p class="bar" position="replace">
<div class="panel">
<div class="panel-header">The Title</div>
<div class="panel-body">
$0
</div>
</div>
</p>
```
The finalt result after inheritance would become:
```
<div class="foo">
<div class="panel">
<div class="panel-header">The Title</div>
<div class="panel-body">
<p class="bar">the paragraph</p>
</div>
</div>
</div>
```
Also updated doc and tests accordingly.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
