Constructor
new module:br/presenter/node/DateField(vDateopt, vStartDateopt, vEndDateopt)
Constructs a new instance of
DateField.
Extends:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
vDate |
<optional> |
The initial value of the date field, either using a
String or as a module:br/presenter/property/EditableProperty. |
|
vStartDate |
<optional> |
Start of the date range for this field, either as
an ISO Date String, a native Date object, or a module:br/presenter/property/ISODateProperty |
|
vEndDate |
<optional> |
End of the date range for this field, either as
an ISO Date String, a native Date object, or a module:br/presenter/property/ISODateProperty |
Extends
Members
-
controlName :br.presenter.property.WritableProperty
-
The logical control-name the field is being bound to — this value will appear within the
nameattribute if being bound to a native HTML control.Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
enabled :br.presenter.property.WritableProperty
-
A boolean property representing whether the input field is enabled or not.
Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
endDate :br.presenter.property.ISODateProperty
-
End of the date range for this field
Type:
- br.presenter.property.ISODateProperty
-
failureMessage :br.presenter.property.WritableProperty
-
A textual description of the currently failing validation message when
#hasErroristrue.Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
hasError :br.presenter.property.WritableProperty
-
A boolean property that is
trueif#valuehas any validation errors, andfalseotherwise.Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
label :br.presenter.property.WritableProperty
-
The textual label associated with the input field.
Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
pending :br.presenter.property.WritableProperty
-
A boolean property that is
trueif#valueis waiting for validation, andfalseotherwise.Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
startDate :br.presenter.property.ISODateProperty
-
Start of the date range for this field
Type:
- br.presenter.property.ISODateProperty
-
value :br.presenter.property.EditableProperty
-
The current value displayed within the input field.
Type:
- br.presenter.property.EditableProperty
- Inherited From:
- Source:
-
visible :br.presenter.property.WritableProperty
-
A boolean property representing whether the input field is visible or not.
Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
Methods
-
getPath()
-
Returns the path that would be required to bind this node from the view.
This method is used internally, but might also be useful in allowing the dynamic construction of views for arbitrary presentation models.
-
nodes(sNodeName, vProperties)
-
Returns all nested nodes matching the search criteria reachable from this node.
Care is taken not to search up the tree in cyclic presentation models (where some of the presentation nodes have back references to presentation nodes higher up in the tree).
Parameters:
Name Type Description sNodeNameString The name of nodes to match. vPropertiesObject Only nodes having this array or map of properties will be matched. - Inherited From:
- Source:
- See:
-
properties(sPropertyName, vValue)
-
Returns all nested properties matching the search criteria reachable from this node.
Care is taken not to search up the tree in cyclic presentation models (where some of the presentation nodes have back references to presentation nodes higher up in the tree).
Parameters:
Name Type Description sPropertyNameString The name of properties to match. vValueObject The value of properties to match. - Inherited From:
- Source:
- See:
-
removeAllListeners()
-
- Inherited From:
- Deprecated:
- This method has been replaced by #removeChildListeners which recurses the node tree.
Removes all listeners attached to the properties contained by this
PresentationNode.
- This method has been replaced by #removeChildListeners which recurses the node tree.
Removes all listeners attached to the properties contained by this
- Source:
-
removeChildListeners()
-
Removes all listeners attached to the properties contained by this
PresentationNode, and any nodes it contains.