Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 1019 Bytes

README.md

File metadata and controls

34 lines (32 loc) · 1019 Bytes

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: '/packages/smaltcreation_autoform-intl-tel-input/.npm/package/node_modules/intl-tel-input/build/js/utils.js'
          }
      }
  }

Style

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

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