How to set maxlength on textField?
android.widget.TextView has an xml declaration android:maxLength. How to convert this to XML UI of nativescript?
Solved it after hitting my head on the keyboard and google
var phoneField = view.getViewById(page,'phoneField');
var fArray = [];
fArray[0] = new android.text.InputFilter.LengthFilter(10);
phoneField.android.setFilters(fArray);
And on iOS?..
@PieterAelse take a look at this feature request https://github.com/NativeScript/NativeScript/issues/3614.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@PieterAelse take a look at this feature request https://github.com/NativeScript/NativeScript/issues/3614.