Skip to content

jchristman/meteor-tagsinput-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-tagsinput-autocomplete

A combination of mizzao:autocomplete and a way of creating tags "in" the input box. There is a live example at tagsautocomplete.meteor.com.

Autoform Support

This library now supports autoform! Hooray! See the example until I have more time to update documentation

API

In short, you will call the tagsinput template with something like the following:

{{> tagsinput autocompleteSettings=settings tagField='username' tagsVar='exampleTagsVar' id='example' name='example' placeholder='Type usernames'}}

In this example, the following is a description of the arguments:

  • autocompleteSettings (optional) - This settings object will be passed directly to an autocomplete field as defined at mizzao:autocomplete. You may NOT specify a callback field as this is used to generate tags.
  • tagField (required) - a string which tells which field to grab from the documents being added to the tags.
  • tagsVar (required) - the variable name for the Session variable used to store the tags. You specify this so that you can avoid conflicts and retrieve the data later.
  • id, name, class, and placeholder are directly tagged onto the input element

More Information

For an detailed example of how to set this up, checkout the example.

About

A combination of mizzao:autocomplete and a way of creating tags "in" the input box.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages