View Full Version : Button RenderTo a Class

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.

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:

new Ext.Button({
renderTo: el