Class CQ.shared.Form
| Package: | CQ.shared |
| Class: | Form |
| Extends: | Object |
| Clientlib: | cq.shared |
A helper class providing a set of form related utilities.
This class is a singleton and cannot be created directly.
Public Properties
This class has no public properties.
Public Methods
| |
getFields() : Array
Get a list of fields in the document.
Get a list of fields in the document.
Parameters:
Returns:
ArrayEach object in the array represents a field. Each field contains: text : StringThe label to display (usually the field's caption). value : StringThe name of the field. enumeration : Array|nullFor enumerated fields, a nested array of text/value pairs.
|
Form |
| |
getLabelForField( HTMLElement fieldNode ) : String
Return the label text for an <input> or <select>. When a
label can't be found, the element's name attrib...
Return the label text for an <input> or <select>. When a
label can't be found, the element's name attribute is used as a fall-back.
Note: Public callers can ignore the documentLabelMap parameter (it's used internally
as a caching mechanism).
|
Form |
| |
searchArray() : Object
Searches an array for an object with a particular property of a particular value.
Searches an array for an object with a particular property of a particular value.
|
Form |
Public Events
This class has no public events.