1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Venezuela
    Posts
    5
    Vote Rating
    0
    gdzambrano is on a distinguished road

      0  

    Default Management Controllers

    Management Controllers


    Hi,I have a questionto the management ofdrivers, it happens thatI have apanel 1where I have abuttonA andBneeda buttonthat when you pressthe buttontobedirectedtomepanel2andif I press thebuttonBisdirectedtomePanel3,I'm drivingtheactionwithdriversbuteitherpressbuttonsalwaysdirectsthepanel2how couldaddressthe buttons oneach panelseparately

    Thank you!

  2. #2
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,082
    Vote Rating
    41
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    have you applied an 'action' config item to your buttons? then you could reference it as below:

    Code:
    this.control({
    'contact button[action=add]':{ click: this.addRecord }, 'contact button[action=delete]':{ click: function(){this.deleteRecord()} }
    });
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint

Thread Participants: 1

Tags for this Thread