PDA

View Full Version : targeting carousel items



outboks
7 Jan 2011, 5:12 AM
hello,

trying to target the carousel inside, using but setactiveitems, but no luck.

any idea?thank you in advance




var formBase = {
scroll: 'vertical',
url : 'postUser.php',
standardSubmit : false,
id: 'basicform',

dockedItems: [{
xtype: 'toolbar',
items: [{
text: 'One',
handler: function(){
//how to target the carousel - One?
}
},{
html: 'Two',
handler: function(){
//how to target the carousel - Two?
}
}]
}],

items: {
xtype: 'panel',
layout: 'card',
fullscreen: true,
items: {
xtype: 'carousel',
items: [{
html: 'Zero'
},{
html: 'One'
},{
html: 'Two'
}]
}

}
};