format
Replaces each format item in a specified string with the text equivalent of a corresponding object's value. Uses toString for every format item.
Parameters
format String
The format string.
Returns
String The formatted string.
Example
<script> /* The result can be observed in the DevTools(F12) console of the browser. */ console.log(kendo.format("{0} - {1}", 12, 24)); // outputs "12 - 24" /* The result can be observed in the DevTools(F12) console of the browser. */ console.log(kendo.format("{0:c} - {1:c}", 12, 24)); // outputs "$12.00 - $24.00" </script> See Also
In this article