Hello,
Will it be useful to have functionality similar to converters in Silverlight?
I am thinking about ability to have function which could convert value on set.
This could add flexibility to the framework.
Something like:
var viewModel = kendo.observable({
currencyAmount: 100.0,
currencyText: {
get: function () {
var value = viewModel.get("currencyAmout");
// convert to string and return converted formatted value.
},
set: function (value) {
// convert from string.
viewModel.set("currencyAmout", amount);
}}
});
Will it be useful to have functionality similar to converters in Silverlight?
I am thinking about ability to have function which could convert value on set.
This could add flexibility to the framework.
Something like:
var viewModel = kendo.observable({
currencyAmount: 100.0,
currencyText: {
get: function () {
var value = viewModel.get("currencyAmout");
// convert to string and return converted formatted value.
},
set: function (value) {
// convert from string.
viewModel.set("currencyAmout", amount);
}}
});