Using Ext.XTemplate and OnClick
the code:
this.previewTemplate = new Ext.XTemplate(
'',
'{Subject}
I need to show an email with the address, from, cc, subject and links to the attachments, for each attachment I have the ExternaId, i'ts the Id to locate the file in the server side, I am using the Xtemplate to show this information it's working ok, but, the trouble is in detect which link was clicked and get the ExternalId to get the file from the server.
I modified the template but using you approach don't work, (I don't have define "some-class" in my css, could be have trouble it?), the error is this.spanemailattachment.el is undefined
/* template used in email with attchament*/
this.previewTemplate = new Ext.XTemplate(
'',
'{Subject}
Text to get
Ext.DomQuery.select('span.some-class');
regards
Frank
My example was aimed in that direction. For example:
container.el.on('click', function(e, t) {
var target = t.getTarget('span.some-class');
if(target) {
// some processing
}
});
Attachment 1
#If you have any other info about this subject , Please add it free.# |