跳至內容
選單
此問題已被標幟
1 回覆
3301 瀏覽次數

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
5885
3
12月 16
8454
0
3月 15
3626
0
2月 25
1317
0
1月 25
1138