PDA

View Full Version : Button RenderTo a Class



ChristopherRyan
30 Nov 2010, 7:20 AM
Is it possible to do a renderTo in a button definition so that multiple instances of a button are created for every time a div of a certain class is used?

Currently I can only renderTo a single ID.

Thanks in advance.

evant
30 Nov 2010, 2:50 PM
What do you mean "every time a div of a certain class is used"?

If you want to render the same button to multiple divs of the same class:



Ext.select('.foo').each(function(el){
new Ext.Button({
renderTo: el
})
});