I have been trying to pass an image array as a parameter to a new ExtJS popup-window. I found this in the below link
Extjs pass in parameters to window on show
But when I tried this in my application, it says undefined. Below is my code.
this.btnControlPDF = Ext.create('Ext.button.Button', {
width: 40,
height:33,
border:0,
disabled : false,
style: 'margin: 13px 1px 1px 5px;',
cls : 'icon-button-ControllListButtonPDF',
enableToggle: true,
toggleGroup: 'AccumulateToolButtons',
handler : function(myButton) {
this.reportWindow = Ext.create('Ext.view.ReportExportView');
this.reportWindow.myExtraParams = { imgArray : imgArray };
this.reportWindow.show();
return;
}
});
Where Ext.view.ReportExportView extends Ext.window.Window
What I want is a way to pass a javascript array variable to new ExtJS popup window and be able to access that variable in the window.
I found HTML5 localStorage.getItem(). Can I use this to store my array?
Thank you! Stu