Can you add formating text inside ui.text.
For example, a ui.text with a number type that is formating automatically with i18 ?
I am asking you that, because i am doing it with custom component. It will be smart not to have to code this
Thanks
Can you add formating text inside ui.text.
For example, a ui.text with a number type that is formating automatically with i18 ?
I am asking you that, because i am doing it with custom component. It will be smart not to have to code this
Thanks
It’s very easy to add a setter as the template’s property but for formating.
Sample.
webix.ui({
view:“text”,
format:function(Value){
return webix.i18n.numberFormat(Value);
}
});
And now when component is blurred, text is defined with the help of format function. Easy.
Such feature was requested by our users several times, so we’ve already decided to add a possibility to mask values of the text inputs. Will be added in the upcoming release.
And also thanks for sharing your solution.