Closed bori87 closed 7 years ago
@bori87 the converter is not accepting any input
value in its constructor so it does not "know' what to convert.
constructor(input: number) { }
And then pass the value you want to convert when initializing your new Converter
this.currencyConverter = new CurrencyConverter(myValue);
Real-life example can be found here - the converter is used here with this._movies
object
Is not working. I want the user to input price like '1,21' then convert to 1.21. Also the keyboard should be numeric.
The price is not formatted in the given example.
Current dataform Decimal editor does not allow to input negative number. So could I use converter to convert between source object number and text input on UI? I try but not know how to do that. When specifying tkEntityPropertyEditor of type Text with source object number field, then it shows error,
ERROR Error: java.lang.Error: DataFormTextEditor does not support properties of type Integer. Please specify a value converter for your property.
I already created converter for that field property. But error is the same as above.
Converter is working but the view is not updating.