appworkshop:autoform-materialize-helptext

v1.0.0Published 9 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Extends gildaspk: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.

Installation

meteor add appworkshop:autoform-materialize-helptext

Usage

  1. Define your help text in the schema as an autoform.help

property of the schema item e.g.

```js
var mySchema = new SimpleSchema({
  "Test":{
    type: "String",
    autoform: {
      help: "This is the help text"
    }
  }
});
```
  1. [optional] Override or apply styles to the form-field-help class.

    1span.form-field-help {
    2  color: @secondary;
    3  font-size: 0.8rem;
    4  margin-top: -15px;
    5  display: block;
    6  margin-left: 1em;
    7}
    8