Namespace Crayon.Form
Holds functionality for escaping charactors.
Defined in: form.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Crayon.Form.check_box(doc, path, tag_value, Object, unchecked_value)
Returns an input tag of the "checkbox" type tailored for accessing a specified attribute.
|
<static> |
Crayon.Form.date_select(doc, path, Object, html_options)
Returns select tags for date selection tailored for accessing a specified attribute.
|
<static> |
Crayon.Form.hidden_field(doc, path, Object)
Returns an input tag of the "hidden" type tailored for accessing a specified attribute.
|
<static> |
Crayon.Form.password_field(doc, path, Object)
Returns an input tag of the "password" type tailored for accessing a specified attribute.
|
<static> |
Crayon.Form.radio_button(doc, path, tag_value, Object)
Returns an input tag of the "radio" type tailored for accessing a specified attribute.
|
<static> |
Crayon.Form.select_date(date, Object, Object)
Returns a set of select tags for date selection.
|
<static> |
Crayon.Form.text_area(doc, path, Object)
Returns an textarea tag tailored for accessing a specified attribute.
|
<static> |
Crayon.Form.text_field(doc, path, Object)
Returns an input tag of the "text" type tailored for accessing a specified attribute.
|
Method Detail
<static>
Crayon.Form.check_box(doc, path, tag_value, Object, unchecked_value)
Returns an input tag of the "checkbox" type tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- {String} tag_value
- radio button value.
- Object Optional
- options tag attribute options.
- unchecked_value
<static>
Crayon.Form.date_select(doc, path, Object, html_options)
Returns select tags for date selection tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- Object Optional
- options tag attribute options.
- html_options
<static>
Crayon.Form.hidden_field(doc, path, Object)
Returns an input tag of the "hidden" type tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- Object Optional
- options tag attribute options.
<static>
Crayon.Form.password_field(doc, path, Object)
Returns an input tag of the "password" type tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- Object Optional
- options tag attribute options.
<static>
Crayon.Form.radio_button(doc, path, tag_value, Object)
Returns an input tag of the "radio" type tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- {String} tag_value
- radio button value.
- Object Optional
- options tag attribute options.
<static>
Crayon.Form.select_date(date, Object, Object)
Returns a set of select tags for date selection.
- Parameters:
- {String} date
- the default selected value.
- Object Optional
- option kev-value pairs for the date list.
- Object Optional
- html_option kev-value pairs passed to each select tag.
<static>
Crayon.Form.text_area(doc, path, Object)
Returns an textarea tag tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- Object Optional
- options tag attribute options.
<static>
Crayon.Form.text_field(doc, path, Object)
Returns an input tag of the "text" type tailored for accessing a specified attribute.
- Parameters:
- {Object} doc
- JSON document to bind.
- {String} path
- JSON member path seperated by "-".
- Object Optional
- options tag attribute options.