mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[DOC] component: fix invalid xml in examples
This commit is contained in:
+3
-3
@@ -75,7 +75,7 @@ widgets:
|
|||||||
```xml
|
```xml
|
||||||
<div t-name="parent">
|
<div t-name="parent">
|
||||||
<span>some text</span>
|
<span>some text</span>
|
||||||
<t t-widget="MyWidget" t-props="{info: 13}">
|
<t t-widget="MyWidget" t-props="{info: 13}"/>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ root widget element.
|
|||||||
|
|
||||||
```xml
|
```xml
|
||||||
<div t-name="parent">
|
<div t-name="parent">
|
||||||
<t t-widget="MyWidget" class="someClass" style="font-weight:bold;" t-props="{info: 13}">
|
<t t-widget="MyWidget" class="someClass" style="font-weight:bold;" t-props="{info: 13}"/>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ class that need to be removed. This is why we only support the explicit syntax
|
|||||||
with a class object:
|
with a class object:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
<t t-widget="MyWidget" t-att-class="{a: state.flagA, b: state.flagB}">
|
<t t-widget="MyWidget" t-att-class="{a: state.flagA, b: state.flagB}"/>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user