PDA

View Full Version : setCard callback



tomalex0
17 Sep 2010, 2:33 AM
Hi

Is there any callback after setCard . Something like this



panel.setCard(bookList,{type :'slide',direction : 'left' ,callback : function(){
alert("slide");}
});

evant
19 Sep 2010, 9:39 PM
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function(){
var p = new Ext.Panel({
fullscreen: true,
layout: 'card',
items: [{
html: 'a'
}, {
html: 'b'
}, {
html: 'c'
}]
});

(function(){
p.setCard(1, {
type: 'slide',
direction: 'left',
after: function(){
alert("slide");
}
});
}).defer(2000);
}
});

tomalex0
19 Sep 2010, 10:10 PM
Hi Thanks it worked fine.