Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Adds help text to aldeed:autoform for bootstrap3 forms

License

AppWorkshop/meteor-autoform-helptext-bootstrap3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extends aldeed:autoform to allow help text to be defined in the schema.

This:

    "autoform": {
      "help": "This is the help text"
    }

becomes this:

autoform_help_text

It works by using aldeed:template-extension to override the afFormGroup_bootstrap3 template.

Installation

meteor add appworkshop:autoform-helptext-bootstrap3

Usage

  1. 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"
        }
      }
    });
  2. [optional] Override or apply styles to the form-field-help class.

    span.form-field-help {
      /*color: @secondary;*/
      font-size: 0.8em;
      margin-top: -0.5em;
      display: block;
      margin-left: 1em;
    }

About

Adds help text to aldeed:autoform for bootstrap3 forms

Resources

License

Stars

Watchers

Forks

Packages

No packages published