Ir al contenido
Menú
Se marcó esta pregunta
3674 Vistas

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.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ene 25
7213
1
jul 24
2273
0
abr 24
1750
1
abr 24
3119
1
dic 23
5673