Skip to content

mpowaga/meteor-autoform-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Autocomplete inputs for autoform using mizzao:autocomplete.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published