I have TextField
using Angular nativescript.
<TextField (textChange)="onTextChange($event)" ></TextField>
I want to allow only the "a
" character to be inserted into that TextField.
All other characters ( "b","c",....) should be prevented - meaning - prevented from inserted.
I already know that I can use the (textChange)
event and then delete the char - but that's a too late event.
Question:
Assuming I have a textfield , How can I cross-platform prevent certain chars from being entered ?