Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3652 Widoki

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 25
7209
1
lip 24
2264
0
kwi 24
1746
computed fields Rozwiązane
1
kwi 24
3114
1
gru 23
5659