Autoform Tags Typeahead
Extends autoform with a tags input including typeahead. Besides providing the input, it also takes care of storing the unique tags for use in the typeahead addition to autofill the input while typing.
forked from cloudspider:autoform-tags-typeahead, updated to latest autoform
Installation
In a Meteor app directory, enter:
$ meteor add ipstas:autoform-tags-typeahead
Example usage
1 2SomeSchema = new SimpleSchema({ 3 tags: { 4 type: [String], 5 label: 'Tags', 6 autoform: { 7 type: 'tags', 8 } 9 } 10}); 11
Let's say that you fill in 3 tags:
Amsterdam, Hamburg, Boston
Above results in the following mongo record
1{ 2 "tags": { 3 "Amsterdam", 4 "Hamburg", 5 "Boston" 6 } 7}
And a separate Collection called cloudspider_tags
This collection is used as source for typeahead to autofill the input when typing
1{ 2 "name": "amsterdam", 3 "title": "Amsterdam" 4} 5{ 6 "name": "hamburg", 7 "title": "Hamburg" 8} 9{ 10 "name": "boston", 11 "title": "Boston" 12}