コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3659 ビュー

Hi,
I have added a custom widget in view by <widget name="my_widget"/> and in js added my adding  it to 'web.widget_registry'. for example: widgetRegistry.add('my_widget', MyWidget);
How to get parent view data, its onchange values to the widget?

I have tried extending the widget with FieldManagerMixin and initiated it in init method. Also added custom_event 

custom_events: _.extend({}, FieldManagerMixin.custom_events, {
field_changed: '_onWFieldChanged',
}),

but no call is happening when a field value is changed.

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 25
7213
1
7月 24
2268
0
4月 24
1748
1
4月 24
3116
1
12月 23
5666