SpikeWeb
13 Sep 2010, 2:59 PM
Hi,
In Carousel2 of the examples you are able to click on a button in the top dock which allows you to go straight to a specific slide. I wish to use this function, but instead of having a button(s) docked at the top of the page, I would like text links to trigger the action. I currently use the below code to trigger a pop-up and have been experimenting with this in an attempt to trigger the on click carousel behaviour. However, I've failed. Any advice on how to do this and if it is possible would be greatly appreciated.
listeners: {
afterrender: function(c){
c.body.on('click', function(){
var overlay = new Ext.Panel({
floating: true,
modal: true,
centered: true,
height: 400,
width: 400,
html: '<p>I am an overlay</p>'
}).show();
}, null, {delegate: 'div.cont'});
}
}
In Carousel2 of the examples you are able to click on a button in the top dock which allows you to go straight to a specific slide. I wish to use this function, but instead of having a button(s) docked at the top of the page, I would like text links to trigger the action. I currently use the below code to trigger a pop-up and have been experimenting with this in an attempt to trigger the on click carousel behaviour. However, I've failed. Any advice on how to do this and if it is possible would be greatly appreciated.
listeners: {
afterrender: function(c){
c.body.on('click', function(){
var overlay = new Ext.Panel({
floating: true,
modal: true,
centered: true,
height: 400,
width: 400,
html: '<p>I am an overlay</p>'
}).show();
}, null, {delegate: 'div.cont'});
}
}