elmasse
20 Sep 2010, 7:55 AM
If you try to use a valid JSON property that starts with @ like obj['@property1'] it doesn't work with Templates nor XTemplates.
Here is the code:
var t = new Ext.XTemplate('{"@bah"} / {bah}');
t.apply({"@bah": 1, bah: 2});
this produces: {@bah} / 2
Here is the code:
var t = new Ext.XTemplate('{"@bah"} / {bah}');
t.apply({"@bah": 1, bah: 2});
this produces: {@bah} / 2