Results 1 to 2 of 2

Thread: How do you add a pressedCls property to a delegate?

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    27
    Answers
    2
    Vote Rating
    0
      0  

    Default How do you add a pressedCls property to a delegate?

    I have and element that acts as a delegate. I would like to add a pressedCls property to the element, but it looks like there isn't configuration to do that. Here is my code:

    Code:
    {        
      scope: this,
      event: 'tap',
      delegate: '.my-element',
      element: 'element',
      fn: this.myFunction
    }
    Is there a method or property I can use to show that the element has been pressed?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Are you wanting to do it within the function of that listener?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •