Unanswered: help on updating multiple instances of a button label across the app
Unanswered: help on updating multiple instances of a button label across the app
hello all. I have a option button that appears on all screens (8 screens total). once the data comes back from the proxy I want to update the button label and the icon src. How do you do a component query and and then update all the results. currently using [0] updates the first
when I try to pull the whole result array I only see one result, not 8
var findPlanNavBtn = Ext.ComponentQuery.query('#planNavBtn');
var planNavBtn = findPlanNavBtn[0];
we are using itemId instead as we have multiple instances. Also I tried using a custom attribute like name = planNavBtn and in the code changed the query to ('button[name=planNavBtn]')