跳至内容
菜单
此问题已终结
1 回复
3341 查看

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>
形象
丢弃
最佳答案

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>
形象
丢弃
相关帖文 回复 查看 活动
1
1月 17
5924
3
12月 16
8551
0
3月 15
3675
0
2月 25
1424
0
1月 25
1196