Skip to content

Instantly share code, notes, and snippets.

@MikeTatsky
Created October 14, 2014 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeTatsky/a5760b0f5667dbe3d335 to your computer and use it in GitHub Desktop.
Save MikeTatsky/a5760b0f5667dbe3d335 to your computer and use it in GitHub Desktop.
Was
render: function(o){
var tpl = o.tpl,
params = o.params;
params.value = '$' + ZG.Format.number(params.value);
if(o.tpl){
return tpl.getHtml(params);
}
else{
return params;
}
},
Now
render: function(o){
var params = o.params;
params.value = '$' + ZG.Format.number(params.value);
return params;
},
About tpl
Also all that on top is possible by
tpl: '${value}',
or
tpl: '${data.price}',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment