Results 1 to 4 of 4

Thread: Tap event for a carousel in mvc!

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    29
    Vote Rating
    0
      0  

    Exclamation Tap event for a carousel in mvc!

    how can i add tap event to a carousel using mvc?, i am able get the select event of a list using its xtype in control, but my doubt is how can i get tap event of the carousel using control?

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Location
    Italy
    Posts
    1,395
    Vote Rating
    24
      0  

    Default

    Hi arunc.
    So, if I well understand what you want to achieve is to get the event "tap" when the user tap anywhere inside a carousel card, am I correct?
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    29
    Vote Rating
    0
      0  

    Default

    what i want to do is like that , imagine we have 5 item in one carousel and i want to show separate views(pages) on each item tap!

  4. #4
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    Get a reference the carousels element, and listen to the tap event.

    Code:
    carousel.element.on('tap', this.doSomething, this);
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •