Provides helper to generate form elements
 var Handlebars = require("handlebars");
 var FormHelper = require("handlebars.el.form");
 FormHelper.registerHelper(Handlebars);Returns
FormHelper instance
- Type
 - object
 
Methods
(static) registerHelpers(hbars)
Register FormHelper helpers with Handlebars
Parameters
| Name | Type | Description | 
|---|---|---|
hbars | 
            
            object | Handlebars instance  | 
        
(inner) inputHelper(0, idopt, nameopt, valueopt, el-controlopt) → {string}
Generic method to handle output of all input elements
Accepts any parameter that the el helper takes since it is built upon it
Parameters
| Name | Type | Attributes | Description | 
|---|---|---|---|
0 | 
            
            string | Input type  | 
        |
id | 
            
            string | 
                
                    <optional> | 
            
            
            Control id  | 
        
name | 
            
            string | 
                
                    <optional> | 
            
            
            Control name  | 
        
value | 
            
            string | 
                
                    <optional> | 
            
            
            Control value  | 
        
el-control | 
            
            boolean | 
                
                    <optional> | 
            
            
            Wjether or not to treat output as a control or to be displayed  | 
        
Returns
Input field
- Type
 - string
 
(private, inner) marshallNamespacedAttributes(namespace, attributes) → {object}
Used by el-field to allow for passing of multi-variate attributes
Parameters
| Name | Type | Description | 
|---|---|---|
namespace | 
            
            string | Property name to marshall  | 
        
attributes | 
            
            object | string | Attributes to retrieve property from  | 
        
Returns
attributes
- Type
 - object
 
(private, inner) normaliseParamArray(param) → {array}
Ensures that all items of the passed param are stringified
If param is not an array, it is first wrapped in an array.
Parameters
| Name | Type | Description | 
|---|---|---|
param | 
            
            array | string | Parameters to be normalised  | 
        
Returns
param
- Type
 - array