javascript - Custom template for array field in Meteor autoform -


if have simple schema:

schemas.user = new simpleschema({   emails: {     type: [object],     optional: true   },   "emails.$.address": {     type: string,     regex: simpleschema.regex.email   },   "emails.$.verified": {     type: boolean   },   "emails.$.description": {     type: string   },   "emails.$.provider": {     type: string   },    ...  }); 

if use autoform print form, can use

{{> afquickfield name="emails"}} 

to print box in can add new or remove/update existing emails user. option add/remove objects design quite ugly. want rows in table instead, have replace template custom template.

how can this? guess template being used https://github.com/aldeed/meteor-autoform/blob/devel/templates/bootstrap3/components/afarrayfield/afarrayfield.html instead of having each object in array list group item, need them table rows each field in each column.

how should template customized , how can swap templates used?


Comments