1.0.1 • Published 4 months ago
phone-mask-native v1.0.1
phone-mask-native
The plugin activates the mask when entering telephone numbers. Most countries with mobile communications are supported, the numbers of countries that are not supported will be represented without a mask.
Install
npm i phone-mask-native
Import
const phoneMaskNative = require("phone-mask-native");
or
import phoneMaskNative from 'phone-mask-native'
Option (selector)
Type: string
Default: input[data-phone-input]
The selector of the input fields of telephone numbers (you can also use the text input field).
Usage
const phoneMaskNative = require("phone-mask-native");
phoneMaskNative("your-selector");
or
const phoneMaskNative = require("phone-mask-native");
phoneMaskNative();
Note
Many thanks for the main idea and help to the web-developer Alexei Goloburdin.