Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
8314 Переглядів

Hi;

I want to inherit and modify template t-name = "TreeView.rows" in base.xml.

I want to change the line 691 :

<t t-set="style" t-value="'background-position: ' + 19*(level) + 'px; padding-left: ' + (4 + 19*(level)) + 'px;'"/>

to

  <t t-set="style" t-value="'background-position: ' + 25*(level) + 'px; padding-left: ' + (4 + 25*(level)) + 'px;'"/>

how can I get the xpath element , I like that in my base.xml but it does not work :

<templates id="template" xml:space="preserve">
<t t-extend="TreeView.rows">
    <t t-jquery="style" t-operation="replace">
           <t t-set="style" t-value="'background-position: ' + 25*(level) + 'px; padding-left: ' + (4 + 25*(level)) + 'px;'"/>
    </t>
</t>
</templates>

Thanks.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
черв. 16
3725
1
серп. 24
974
1
груд. 23
1052
1
груд. 22
4026
1
лист. 22
4373