Skip to content

Instantly share code, notes, and snippets.

@nelstrom
Created October 19, 2010 17:44
Show Gist options
  • Save nelstrom/634639 to your computer and use it in GitHub Desktop.
Save nelstrom/634639 to your computer and use it in GitHub Desktop.
var tpl = Ext.XTemplate.from('kids-list');
tpl.isGirl = function(name){
return name == 'Sara Grace';
}
tpl.isBaby: function(age){
return age < 1;
}
tpl.overwrite(panel.body, data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment