ddmorales
8 Dec 2010, 4:46 AM
I'm quite sure there is an easy way to do this, but somehow it wont come to me :)
What I'm trying to achieve is a toggle between hide() and show() when element is tapped. I can only make it work one way. Also a fade effect between them would be nice but I would settle of just getting it work!
var photo = new Ext.Carousel({
direction: 'horizontal',
ui: 'light',
flex: 1,
title: "photo",
listeners: {
afterrender: function (c) {
c.el.on('tap', function () {
Ext.select(".info").show();
})
}
},
items: [my items are here...]
});
I have some toolbars which have the .info class and the hide and show does work. Do I need to have some toggle listeners or how can I make this work?
Any help?
What I'm trying to achieve is a toggle between hide() and show() when element is tapped. I can only make it work one way. Also a fade effect between them would be nice but I would settle of just getting it work!
var photo = new Ext.Carousel({
direction: 'horizontal',
ui: 'light',
flex: 1,
title: "photo",
listeners: {
afterrender: function (c) {
c.el.on('tap', function () {
Ext.select(".info").show();
})
}
},
items: [my items are here...]
});
I have some toolbars which have the .info class and the hide and show does work. Do I need to have some toggle listeners or how can I make this work?
Any help?