Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 16
4094
1
sie 24
1594
1
gru 23
1583
1
gru 22
4542
1
lis 22
4889