elkidos
4 Dec 2009, 2:48 PM
Hi guys,
XTemplate member functions are working nice for me except in one case: when I want to apply a member function to a simple array.
Ex: I have a simple array named "Notes" (Notes = ['blabla', 'blabla', 'blabla again'])
In the definition of my template, I have this piece of code:
...
'<tpl for="Notes">',
'<li class="list-item">',
'<span class="item-val">{.:this.formatNote}</span>',
'</li>',
'</tpl>',
...
The part {.:this.formatNote} is not working. Do you know how to get it works?
Thanks!!
XTemplate member functions are working nice for me except in one case: when I want to apply a member function to a simple array.
Ex: I have a simple array named "Notes" (Notes = ['blabla', 'blabla', 'blabla again'])
In the definition of my template, I have this piece of code:
...
'<tpl for="Notes">',
'<li class="list-item">',
'<span class="item-val">{.:this.formatNote}</span>',
'</li>',
'</tpl>',
...
The part {.:this.formatNote} is not working. Do you know how to get it works?
Thanks!!