PDA

View Full Version : Passing a customer property from view to window



chl.bnaa
4 Mar 2015, 5:37 AM
Hello

I am attempting to pass a custom property from a view to a window. I render the window like this




onToolClick: function(tool,e,e0pts){
var panel = Ext.create('MyApp.view.DeviceSelectorPanel');
panel.show();
}


From the above Ext.panel.Tool, i am able to locate the custom property, called refid, that I want to send to the window. But how do I pass it to the window?

Thank you

yeghikyan
5 Mar 2015, 11:40 AM
if you are going to pass the property on the win initialisation then:


Code:
onToolClick: function(tool,e,e0pts){
var panel = Ext.create('MyApp.view.DeviceSelectorPanel', {
refid: tool.refid
});
panel.show();
}

brrr, what do you mean? (:|

chl.bnaa
6 Mar 2015, 2:03 AM
Thanks, that did the trick :-)