kevinv1990
14 Sep 2010, 6:03 AM
Hello everyone,
Can someone tell me how I can add a button in a XTemplate?
var tpl = new Ext.XTemplate(
'<tpl for=".">',
'<div class="tpl">',
'<h2>Gezocht: <a href="#">{titel}</a></h2>' ,
'<div class="bodyvacature">',
'<p><i>Categorie:</i> {categorie}</p>' ,
'<p><i>Opleiding: </i>{opleiding}</p>' ,
'<p><i>Uren per week:</i> {upw}</p>',
'<p><i>Publicatiedatum:</i> {publicatiedatum}</p>' ,
'</div></div></tpl>'
);
I would like a button under "Publicatiedatum" and when I press the button, an handler or listener or what works (sorry I do not know what I have to use) will catch the click and will redirect to a panel which will be filled with a form.
Hope someone knows..
Can someone tell me how I can add a button in a XTemplate?
var tpl = new Ext.XTemplate(
'<tpl for=".">',
'<div class="tpl">',
'<h2>Gezocht: <a href="#">{titel}</a></h2>' ,
'<div class="bodyvacature">',
'<p><i>Categorie:</i> {categorie}</p>' ,
'<p><i>Opleiding: </i>{opleiding}</p>' ,
'<p><i>Uren per week:</i> {upw}</p>',
'<p><i>Publicatiedatum:</i> {publicatiedatum}</p>' ,
'</div></div></tpl>'
);
I would like a button under "Publicatiedatum" and when I press the button, an handler or listener or what works (sorry I do not know what I have to use) will catch the click and will redirect to a panel which will be filled with a form.
Hope someone knows..