
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
nativescript-maskedinput-ng2
Advanced tools
This plugin extends the {N} TextView to allow for input masking.
iOS 7+
Android API 17+
Plugin does not support the use of the keyboardType property from TextView.
Plugin will attempt to determine the mask type and display the appropriate keyboardType automatically.
Run tns plugin add nativescript-maskedinput-ng2
To use MaskedInput you need to include it in your XML.
Add the following to your page directive.
xmlns:mi="nativescript-maskedinput-ng2"
Use MaskedInput by adding the following XML.
<mi:MaskedInput mask="1-999-999-9999? x999" hint="1-555-555-5555" placeholder="#" />
Get or Set the mask used for input
Returns true or false if the input text matches the mask.
Use the FormattedText
property or the text
property to validate the input.
Gets or Sets the placeholder.
Default: _
Gets only the text that matches the RegEx pattern from the mask.
You cannot validate the RawText property. It will fail.
Gets the Full text including any seperators as specified in the mask.
Gets the regex that was created from the mask so that you can perform your own validation.
FAQs
A nativescript mask input for Angular 2
We found that nativescript-maskedinput-ng2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.