Created
October 14, 2014 08:21
-
-
Save MikeTatsky/a5760b0f5667dbe3d335 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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