Results 1 to 4 of 4

Thread: [Solved] Controller Action should be able to reference Refs

  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2011
    Posts
    33
    Vote Rating
    0
      0  

    Default [Solved] Controller Action should be able to reference Refs

    [SOLVED] A Controller Action should be able to reference a named Controller Reference according to the Sencha Touch2 documentation. This doesn't seem possible currently with the designer as it puts what is entered in double quotes (see below)

    Code:
        config: {
            control: {
                "loginButton": { 
                    tap: 'doLogin'
                }
            },
    
            refs: {
                loginButton: 'button[action=login]'
            }
        }

  2. #2
    Ext JS Premium Member
    Join Date
    Jul 2011
    Posts
    33
    Vote Rating
    0
      0  

    Default

    Nevermind. It does work with the double quotes, my query was just off.

  3. #3
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    updating your code example in your 2nd post would help others!
    Phil Strong
    @philstrong

  4. #4
    Ext JS Premium Member
    Join Date
    Jul 2011
    Posts
    33
    Vote Rating
    0
      0  

    Default

    The same code works, it is just that the query in it needs to actually match something.

Posting Permissions

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