-
8 Oct 2011 12:24 AM #1
Answered: Best way to get a component from a... uhm... collection!
Answered: Best way to get a component from a... uhm... collection!
Hi guys,
I'm sure you know the toolbar component.
what technic/style do you use to get a reference to an item?PHP Code:xtype: 'toolbar',
dock: 'bottom',
items: [{
text: 'More',
id: 'productAssistantMore'
}, {
text: 'Less',
id: 'productAssistantLess'
}]
Do you know an Ext native method to do something like toolbar.getItemById('productAssistantMore')?
Thank you in advance. Just now I'm looping trough the items collection but... i don't like that
Bye bye
-
Best Answer Posted by twaindevorCode:
toolbar.child('#productAssistantMore');
Code:toolbar.down('#productAssistantMore');
-
8 Oct 2011 1:55 PM #2
orCode:toolbar.child('#productAssistantMore');
Code:toolbar.down('#productAssistantMore');


Reply With Quote