15 Feb 2013 12:52 PM #1
Unanswered: Can you assign a variable in XTemplate?
So I want to create a format like this in my XTemplate:
My data structure is
One way to create the format above is to set a variable in XTemplate and check to see if it's changed so the header (Football, Baseball) changed.
17 Feb 2013 8:06 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
In the <tpl> you could do something like this.type = values.type, this will be the scope of the template.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.