Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3348 Visninger

Is only one way to add on_chanage event to inherited field, using position="replace"?

For example I want to use another solution to add on_change to move_ids field:

<field name="move_ids" position="replace">
    <field name="move_ids" on_change="on_change_move_ids()"/>
</field>
Avatar
Kassér
Bedste svar

Yes, you can do so.

There is another way to add/replace attribute:

<field name="move_ids" position="attributes">
    <attribute name="on_change">on_change_move_ids()</attribute>
</field>
Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jan. 17
5934
3
dec. 16
8565
0
mar. 15
3687
0
feb. 25
1432
0
jan. 25
1202