/meteor-autoform-autocomplete

Autocomplete inputs for autoform using mizzao:autocomplete.

Primary LanguageJavaScriptMIT LicenseMIT

meteor-autoform-autocomplete

Autocomplete inputs for aldeed:autoform using mizzao:autocomplete.

Usage

Get familiar with mizzao:autocomplete docs.

Install the package:

meteor add mpowaga:autoform-autocomplete

Define schema like this:

PostsSchema = new SimpleSchema({
  /* ... */

  title: {
    type: String,
    autoform: {
      afFieldInput: {
        type: 'autocomplete-input',
        placeholder: 'Title',
        settings: {} // mizzao:autocomplete settings. required
      }
    }
  },

  content: {
    type: String,
    autoform: {
      afFieldInput: {
        type: 'autocomplete-textarea',
        rows: 4,
        settings: {} // mizzao:autocomplete settings. required
      }
    }
  }
});