Results 1 to 2 of 2

Thread: City Bars Example - No controller action after pop

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    1
      1  

    Default City Bars Example - No controller action after pop

    Dear sencha touch dev team and community,

    I am very new at sencha touch and I tried the City Bars example with the Architect 2.1.0 588.
    It works fine! But when i try to add a controller action to the call/more button on the DetailPanel like this
    Code:
    onButtonTap: function(button, e, options) {
      console.log('botton tap');
    },
    with following reference
    Code:
    control: {
       "#dataList": {                
           itemtap: 'onListItemTap' 
       },  
        "#callButton": {
           tap: 'onButtonTap'
       }      
    }
    it still works till I press the back button off the navigation bar (so MainNav.pop()). If I tap on a new listitem afterwards, the buttons on the
    new DetailPanel have no function. What is wrong with my code? The referencing?
    In my opinion the example ends, where the interesting things begins

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    1
      0  

    Default Workaround / Solution

    After I created an issue report on the github repository (see https://github.com/SenchaArchitect/CityBars/issues/2), Phil Strong suggested me to use following component query
    Code:
    detailpanel button[text='Call']

    I tried also:
    Code:
    detailpanel button[id='callButton']
    which works fine, too.

    Many thanks to him!

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
  •