juto:autoform-telephone-input

v1.0.0Published 6 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Plugin for aldeed:autoform to add international telephone numbers via the NPM intl-tel-input library.

Turns this:

1{
2  phone: {
3    type: SimpleSchema.RegEx.Phone,
4    label: "Phone",
5    autoform: {
6      afFieldInput: {
7        type: "intl-tel"
8      }
9    }
10  }
11}

Into this:

image

Installation

  1. Install the intl-tel-input library.

    meteor npm install intl-tel-input@15.0.2 --save
  2. Install this library.

    meteor add juto:autoform-telephone-input