PDA

View Full Version : Passing variables to view



LeonS
11 Jul 2011, 7:12 AM
Hi,

I init my views inside of my controllers like that:


var details = this.parentPanel.add( {
xtype: 'details-listpanel',
listeners: {
deactivate: function(details) {
details.destroy();
}
},
data: this.detailData.data
});

I dont want to render the data of detailData, I just need the the id of it to perform an ajax call.
Does that is the way I should do that or can I pass custom variables to a view?