Привет вот пример с 3 экранами, которые скользят:
/**
* Your app description
*/
Ext.application({
name: 'Slide my card',
// launch function
launch: function() {
Ext.create('Ext.Container', {
fullscreen: true,
layout: {
type: 'card',
animation: {
type: 'slide',
direction: 'left'
}
},
items: [
{
xtype: 'panel',
html: 'Card 1',
items : [{
xtype : 'button',
text: 'Go to second card',
margin: '10 10 10 10',
ui : 'action',
handler: function() {
this.getParent().parent.setActiveItem(1)
}
}]
},
{
xtype: 'panel',
html: 'Card 2',
items : [{
xtype : 'button',
text: 'Go to third card',
margin: '10 10 10 10',
ui : 'action',
handler: function() {
this.getParent().parent.setActiveItem(2)
}
}]
},
{
xtype: 'panel',
html: 'Card 3',
items : [{
xtype : 'button',
text: 'Go to first card',
margin: '10 10 10 10',
ui : 'confirm',
handler: function() {
this.getParent().parent.setActiveItem(0)
}
}]
}
]
});
}
});