I have a controller and I want to pass a simple string value to the following view.
To do this, I create a view like this.
var nextView = Ext.create ('MyApp.view.NextView', {
content: 'value'
});
Ext.Viewport.add (nextView);
Ext.Viewport.animateActiveItem (nextView, {type: 'slide', direction: 'left'});
On NextView , I have a label, and I want to set the value of the HTML label property that I pass from the controller. i.e. 'Value'.
My NextView is as follows.
Ext.define ('MyApp.view.NextView', {
extend: 'Ext.form.Panel',
config: {
content: 'null',
items: [
{
xtype: 'label',
html: 'value'
}
]
}
});
I am not sure how to proceed from here. I cannot have NextView as a form. I just need to pass a single string value in this situation. What is the best way to achieve this?
source share