Skip to content

The plugin activates the mask when entering phone numbers. Belarusian and Russian numbers are supported, the rest are introduced without a mask.

Notifications You must be signed in to change notification settings

GreyAdmiral/phone-mask-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

phone-mask-ruby

The plugin activates the mask when entering phone numbers. Belarusian and Russian numbers are supported, the rest are introduced without a mask.

Install

npm i phone-mask-ruby

Import

const phoneMaskRUBY = require("phone-mask-ruby");

or

import phoneMaskRUBY from 'phone-mask-ruby'

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 phoneMaskRUBY = require("phone-mask-ruby");

phoneMaskRUBY("your-selector");

or

const phoneMaskRUBY = require("phone-mask-ruby");

phoneMaskRUBY();

Note

Many thanks for the main idea and help to the web-developer Alexei Goloburdin.

About

The plugin activates the mask when entering phone numbers. Belarusian and Russian numbers are supported, the rest are introduced without a mask.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published