-
Ext User
call function in xTemplate
I got dataView with xTemplate. xTemplate got function getVoiceMessageCount(parm) .
I want to call this function from xTemplate and pass the parameter from store.
I got error message missing ) after argument list. ext-all-debug.js (?????? 20640)
'<span id="button-{buttonId}-vmCount">{[this.getVoiceMessageCount({buttonId})]}</span>',
When i replace {buttonId} with any value e.g 5 or 10 everything works fine.
-
Ext User
Never mind
I found solution.
'<span id="button-{buttonId}-vmCount">{[this.getVoiceMessageCount(values["buttonId"])]}</span>',
-
Sencha User
It work perfectly, thank's.
-
Sencha User
can you paste your code
I'm trying to do something similar but it's not working - can you paste a little more of your code (like the function) so I can see how this works?
-
@heaversm, this is all documented is the API docs for XTemplate, including examples. If you need more help then please post your code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules