I have just started using Sencha Architect, and I have problems doing even the simplest of things. I'm trying to go to the next view, when a button is clicked. The code I have so far makes an alert when the button is clicked.
Ext.define('MyApp.view.Login', {
extend: 'Ext.Container',
config: {
layout: {
align: 'center',
type: 'vbox'
},
items: [
{
xtype: 'fieldset',
width: 500,
title: 'Login',
items: [
{
xtype: 'selectfield',
label: 'Vælg bil',
store: 'cars'
},
{
xtype: 'passwordfield',
label: 'Adgangskode'
},
{
xtype: 'checkboxfield',
label: 'Husk mig'
},
{
xtype: 'button',
handler: function(button, event) {
alert("foo");
},
text: 'Log ind'
}
]
}
]
}
});
What should go instead of the alert, to add a new view?