I have a Sencha Touch 2 carousel (see http://dev.sencha.com/deploy/touch/examples/production/carousel/index.html). I need to capture the event when the active item is first and the user tries to navigate back. Also, when the active item is the last and the user tries to navigate forward.
I haven't found on Sencha Touch docs anything close to my needs: http://docs.sencha.com/touch/2.2.0/#!/api/Ext.carousel.Carousel
Let's start from here:
Ext.create('Ext.Carousel', {
fullscreen: true,
defaults: {
styleHtmlContent: true
},
items: [
{
html : 'Item 1',
style: 'background-color: #5E99CC'
},
{
html : 'Item 2',
style: 'background-color: #759E60'
},
{
html : 'Item 3'
}
]});