Constructor
new module:br-presenter /node /Calendar Date Field(vDate, vStart Date, vEnd Date)
Extends:
Parameters:
Name | Type | Description |
---|---|---|
vDate |
The initial date |
|
vStartDate |
The first selectable date |
|
vEndDate |
The last selectable date. |
Extends
Members
(static) ALL _DAYS :int
Represents the ALL days strategy
Type:
- int
(static) NO _DAYS :int
Represents the NO days strategy
Type:
- int
control Name :br-presenter /property /Writable Property
The logical control-name the field is being bound to — this
value will appear within the name
attribute if being bound
to a native HTML control.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
current Month :br-presenter /property /Writable Property
The current month displayed.
Type:
-
br-presenter
/property /Writable Property
current Year :br-presenter /property /Writable Property
The current year displayed
Type:
-
br-presenter
/property /Writable Property
enabled :br-presenter /property /Writable Property
A boolean property representing whether the input field is enabled or not.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
end Date :br-presenter /property /ISODate Property
End of the date range for this field
Type:
-
br-presenter
/property /ISODate Property
- Inherited From:
failure Message :br-presenter /property /Writable Property
A textual description of the currently failing validation message when #hasError
is true
.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
has Error :br-presenter /property /Writable Property
A boolean property that is true
if #value
has any validation errors, and false
otherwise.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
label :br-presenter /property /Writable Property
The textual label associated with the input field.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
pending :br-presenter /property /Writable Property
A boolean property that is true
if #value
is waiting for validation, and false
otherwise.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
start Date :br-presenter /property /ISODate Property
Start of the date range for this field
Type:
-
br-presenter
/property /ISODate Property
- Inherited From:
valid Dates For Month :br-presenter /property /Writable Property
The current valid dates is the displayed month.
Type:
-
br-presenter
/property /Writable Property
value :br-presenter /property /Editable Property
The current value displayed within the input field.
Type:
-
br-presenter
/property /Editable Property
- Inherited From:
visible :br-presenter /property /Writable Property
A boolean property representing whether the input field is visible or not.
Type:
-
br-presenter
/property /Writable Property
- Inherited From:
Methods
get Path()
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.
- Inherited From:
get Valid Dates For Month()
Returns an array of integers, which are the valid dates for the current month.
nodes(sNode Name, 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 |
---|---|---|
sNodeName |
String | The name of nodes to match. |
vProperties |
Object | Only nodes having this array or map of properties will be matched. |
- Inherited From:
- See:
properties(sProperty Name, 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 |
---|---|---|
sPropertyName |
String | The name of properties to match. |
vValue |
Object | The value of properties to match. |
- Inherited From:
- See:
remove All Listeners()
- 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
remove Child Listeners()
Removes all listeners attached to the properties contained by this PresentationNode
, and any nodes it contains.
- Inherited From:
set Available Date Strategy(nStrategy)
Sets the strategy of available dates.
Parameters:
Name | Type | Description |
---|---|---|
nStrategy |
int | one of the static constants (e.g. ALL_DAYS, or NO_DAYS) on this class. |