International phone input for autoform package.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
autoform-intl-tel-input.html
autoform-intl-tel-input.js
package.js

README.md

meteor-autoform-intl-tel-input

International phone input for autoform package. @See Bluefieldscom/intl-tel-input jQuery plugin.

meteor add smaltcreation:autoform-intl-tel-input

Usage

In your SimpleSchema object, autoform has to be type of 'intl-tel':

  phone: {
      type: String,
      autoform: {
          type: 'intl-tel',
          class: 'form-control',
          intlTelOptions: {
              autoFormat: true,
              defaultCountry: 'FR',
              utilsScript: 'lib/libphonenumber/build/utils.js'
          }
      }
  }

Style

If you want the vertical-form style of bootstrap, add in your .css file:

.intl-tel-input {
    width: 100%;
}