Hello,
I'm new to Deft JS and I try to learn it.
I have a controller MyApp.controller.MyController. In this controller, we found this code :
refs: [
{
ref: 'myWindow',
selector: 'mywindow'
}
],
views: [
...
'MyWindow'
],
...
onTextfieldChange: function(field, e, options) {
if (condition) {
if (this.getMyWindow() === undefined) {
Ext.widget('mywindow');
}
this.getMyWindow().show();
}
else {
if (this.getMyWindow() !== undefined) {
this.getMyWindow().hide();
}
}
},
With refs, I can get a reference on a MyApp.view.MyWindow instance. How can I have the same think in Deft JS ViewController ?
Thanks,
Jean-Marc