Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Where are the component events???

  1. #1
    Sencha User swarnendude's Avatar
    Join Date
    Jul 2009
    Location
    Kolkata, India
    Posts
    117
    Vote Rating
    1
      0  

    Question Where are the component events???

    Guys,

    Can you tell me where are the component events? Like for a Ext.List, there is a "select" event but I cannot see that in the documentation.

    Also, how to set a click event on a container body? There is no "afterrender" event present for a container.

    Any help?
    Swarnendu
    Co-founder & Lead Architect @ Innofied

    ------------------
    I blog at http://www.swarnendude.com

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    86
      0  

    Default

    In ST1 and Ext4, you could do something like:

    Code:
    {
        xtype     : 'component',
        listeners : {
            el : {
                tap  /* or click */ : function() {
                    alert('here')
                }
            }
    
        }
    }
    But it does not work in Sencha Touch 2. most of the component lifecycle events have been removed.

    As far as Ext.List, the events like itemtap, select are fired. They are also documented.

  3. #3
    Touch Premium Member
    Join Date
    Jul 2009
    Posts
    23
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by jgarcia@tdg-i.com View Post

    They are also documented.
    Please can you tell where. I cant find these events here http://docs.sencha.com/touch/2-0/#!/api/Ext.dataview.List

    Thank You

  4. #4
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    86
      0  

    Default

    I apologize. I meant to write "should be documented". I've been so deep into the ST2 source code lately, that I don't look @ the docs much any more.

  5. #5
    Sencha User
    Join Date
    Jun 2010
    Posts
    11
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by jgarcia@tdg-i.com View Post
    In ST1 and Ext4, you could do something like:

    Code:
    {
        xtype     : 'component',
        listeners : {
            el : {
                tap  /* or click */ : function() {
                    alert('here')
                }
            }
    
        }
    }
    But it does not work in Sencha Touch 2. most of the component lifecycle events have been removed.
    Is there a replacement in ST2 for setting up gesture listeners on components when defining or creating them? Thanks!

  6. #6
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    We missed out a number of @events when updating the docs for 2.0.0, we'll start bringing these back over the next few releases. Sorry about that, I know it's frustrating :/
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  7. #7
    Sencha User swarnendude's Avatar
    Join Date
    Jul 2009
    Location
    Kolkata, India
    Posts
    117
    Vote Rating
    1
      0  

    Default

    @Ed, thanks for confirming. But can you at least tell us a event like "afterrender"? I tried using "renderedchange" but that gets fired in some specific cases.
    Swarnendu
    Co-founder & Lead Architect @ Innofied

    ------------------
    I blog at http://www.swarnendude.com

  8. #8
    Touch Premium Member
    Join Date
    Sep 2009
    Posts
    27
    Vote Rating
    2
      0  

    Default no events...

    I was trying to find out that too...

    DataView events are lost in space :-)

  9. #9
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
      0  

    Default

    Try using 'painted' event and see if that helps.

  10. #10
    Sencha User
    Join Date
    Sep 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by orinacko View Post
    Is there a replacement in ST2 for setting up gesture listeners on components when defining or creating them? Thanks!
    I too am wondering the same thing? Are these coming back in a future release?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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