Like many other widgets, I have a custom widget that open a tiny popup window to edit/view more states.
Before that popup window is created, the viewModel exist in the class that will open the window.
My problem is that the new popup window is ignoring the viewModel of my custom widget, it's real parent, because it's not in the UI hierarchy. How can I fix this?
Code:
Ext.define('OPApp.widget.DateRange', {
extend: 'Ext.container.Container',
viewModel: {
start: '{start}',
end: '{end}'
}
items: [{
xtype: 'textfield',
triggers: {
search: {
Ext.create('Ext.form.Panel', {
floating: true,
).showAt(xy);
...