PDA

View Full Version : How to wrap a Ext.Button in a div using template



raskri
11 Mar 2014, 3:57 AM
How can I turn this:
<div id="ext-comp-1095" class=" x-button">
<span class="x-button-label" id="ext-gen1322">HELLO</span>
</div>

into this:
<div class="wrapper">
<div id="ext-comp-1095" class=" x-button">
<span class="x-button-label" id="ext-gen1322">Logg inn</span>
</div>
</div>

fmoseley
12 Mar 2014, 6:27 PM
The Ext.Button should have a renderTo config you can use to render it to a div.
http://docs.sencha.com/touch/1.1.1/#!/api/Ext.lib.Component-cfg-renderTo