Extends mozfet:autoform-materialize to allow help text to be defined in the schema.
It works by using aldeed:template-extension to override the afFormGroup_materialize template.
meteor add appworkshop:autoform-materialize-helptext
-
Define your help text in the schema as an
autoform.help
property of the schema item e.g.var mySchema = new SimpleSchema({ "Test":{ type: "String", autoform: { help: "This is the help text" } } });
-
[optional] Override or apply styles to the
form-field-help
class.span.form-field-help { color: @secondary; font-size: 0.8rem; margin-top: -15px; display: block; margin-left: 1em; }