Input with bootstrap addon and custom icon for autoform.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
WaSa42 Merge pull request #1 from SmaltCreation/dev
Dev - Initial pull-request
Latest commit b258506 Sep 10, 2015

README.md

meteor-autoform-input-addon-icon

Input with bootstrap addon and custom icon for autoform.

meteor add smaltcreation:autoform-input-addon-icon

Usage

In your SimpleSchema object, autoform has to be type of 'smalt-addon-icon':

  email: {
        type: String,
        regEx: SimpleSchema.RegEx.Email,
        autoform: {
            type: 'smalt-addon-icon',
            icon: 'fa fa-fw fa-envelope',
            left: true
        }
    }
  • type: 'smalt-addon-icon'
  • icon: use class like glyphicon or fontawesome
  • left: if true, icon will be displayed left ; else right

@See Bootstrap documentation for more infos about input-group-addon class.