Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3336 Lượt xem

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>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 17
5916
3
thg 12 16
8544
0
thg 3 15
3670
0
thg 2 25
1413
0
thg 1 25
1178