Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 918 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 918 Bytes

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
      }
    }
  }
});