I want to ask you to add support for this type of call to kendo.format:
kendo.format('{0} - {1}', [3, 5]);
Of course this is not useful if you have the parameters in seperate variables.
But it is useful if you get the format and the parameters from some external source and that delivers the parameters as an array.
It will be a small change in the kendo.format function. I have changed the first line to this:
(Perhaps you have better ideas about the implementation, but this is the idea and works for me now)
Regards, Jaap
kendo.format('{0} - {1}', [3, 5]);
Of course this is not useful if you have the parameters in seperate variables.
But it is useful if you get the format and the parameters from some external source and that delivers the parameters as an array.
It will be a small change in the kendo.format function. I have changed the first line to this:
var
values = arguments;
if
(arguments.length == 2 && isArray(arguments[1])) {
values = arguments[1];
values.unshift(undefined);
}
Regards, Jaap