-
1 May 2012 7:24 PM #1
XTemplate: conditional concatination
XTemplate: conditional concatination
Hi, all!
How can I use order number {#} in conditional string for conditional concatination?
I try this code
but it thow error "invalid property id"Code:new Ext.XTemplate('<tpl for=".">', '<tpl if="{#} > 1">,</tpl>', '{name}' '</tpl>');
p.s. sorry for my english
-
14 May 2012 7:15 AM #2
Is {#} supposed to resolve to something? Where is this coming from?
Regards,
Scott.
-
17 May 2012 7:26 AM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
{#} should equate to the index of the item in the array
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote