Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3316 Представления

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>
Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
янв. 17
5898
3
дек. 16
8471
0
мар. 15
3647
0
февр. 25
1325
0
янв. 25
1144