The plugin activates the mask when entering phone numbers. Belarusian, Russian and Ukrainian numbers are supported, the rest are introduced without a mask.
npm i phone-mask-rubyconst phoneMaskRUBY = require("phone-mask-ruby");or
import phoneMaskRUBY from 'phone-mask-ruby'Type: string
Default: input[data-phone-input]
The selector of the input fields of telephone numbers (you can also use the text input field).
const phoneMaskRUBY = require("phone-mask-ruby");
phoneMaskRUBY("your-selector");or
const phoneMaskRUBY = require("phone-mask-ruby");
phoneMaskRUBY();Many thanks for the main idea and help to the web-developer Alexei Goloburdin.