I’m attempting to add the yogiben:autoform-tags plugin to autoform+collection2.
Looking at the examples http://timschlechter.github.io/bootstrap-tagsinput/examples/ I’m not sure what to put in place of the “# bootstrap-tagsinput options” in my schema.
Schemas = {}
@Entries = new Meteor.Collection(‘entries’);
Schemas.Entries = new SimpleSchema
title:
type:String
max: 60
tags: type: [String] # or String autoform: type: 'tags' afFieldInput: # bootstrap-tagsinput options
Entries.attachSchema(Schemas.Entries)
I’m not familiar with coffeescript and what that pound sign translates to. Here’s my JavaScript interpretation of the same thing:
Schema.entries = new SimpleSchema({
title: {
type: String,
max: 60
},
tags: {
type: String,
autoform: {
type: 'tags',
afFieldInput: {
/* Can someone help me with an example what goes in here */
}
},
optional: true
}
});