Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
19076 Näkymät

Any body please explain me t-extend and t-jquery with a example in qweb reports

Avatar
Hylkää
Paras vastaus

t-extend is used to extend an existing template

You will see qweb templates in the base module like:

<t t-name="layout">
....
</t>

You can use <t t-extend="module_name.layout" > to extend these and insert new qweb elements.

<t t-jquery> is used to specify a postion.

For example,

<t t-name="layout">
<span class="some_class">Hello</span>
</t>

You could extend this by using:

<t t-jquery="span.some_class" t-operation="after">
</t>

t-jquery is usually used in conjuction with t-operation much like <xpath expr="" position="" /> 

Hope this helps.






Avatar
Hylkää

If you browse through some modules, you should get the hang of it. Let me know if you need more help.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 25
1891
1
toukok. 25
1986
1
huhtik. 25
2403
1
helmik. 25
1693
0
lokak. 24
1457