-
29 May 2012 9:02 PM #1
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!
-
30 May 2012 10:34 AM #2Sencha - Sales Team
- Join Date
- Mar 2007
- Location
- Melbourne, Australia (aka GMT+10)
- Posts
- 738
- Vote Rating
- 6
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()} }});Check out SenchaWorld.com for articles, screencasts, conference videos and more.
Sencha Technical Training : Asia Pacific Region
Code Validation : JSLint | JSONLint | JSONPLint


Reply With Quote


