Constructor
new module:br-presenter /property /Property Helper()
Methods
add Change Listener(oProperty, oScope, vHandler, bCall Nowopt) → {module:br-presenter /property /Property Helper}
Adds a change listener to the supplied property. Can accept either a String method name or a function reference as the handler callback
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
oScope |
Object | ||
vHandler |
function | String | ||
bCallNow |
Boolean |
<optional> |
Returns:
add Change Notification(oProperty, oScope, vHandler, bCall Nowopt) → {module:br-presenter /property /Property Helper}
Adds a change listener to the supplied property. The function handler will be called with three arguments: the new value of the property, the previous value of the property and the property itself.
You can use this method in case you want to receive in your change handler the property's old value as well as the new one.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
oScope |
Object | ||
vHandler |
function | String | ||
bCallNow |
Boolean |
<optional> |
Returns:
add Update Listener(oProperty, oScope, vHandler, bCall Nowopt) → {module:br-presenter /property /Property Helper}
Adds an update listener to the supplied property. Can accept either a String method name or a function reference as the handler callback
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
oScope |
Object | ||
vHandler |
function | String | ||
bCallNow |
Boolean |
<optional> |
Returns:
add Validation Change Listener(oProperty, oScope, vHandler, bCall Nowopt)
Adds a listener for the validation state changing on the supplied editable property.
Can accept either a String method name or a function reference as the handler callback. Note that as this method attaches multiple handlers, there is no return value; in order to remove listeners created by this method, use either #removeAllListeners or #clearProperty.
The function used as the handler will be called with two arguments, a boolean value that shows the validation status (true for valid and false for error) and the property.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
oScope |
Object | ||
vHandler |
function | String | ||
bCallNow |
Boolean |
<optional> |
add Validation Error Listener(oProperty, oScope, vHandler, bCall Nowopt) → {module:br-presenter /property /Property Helper}
Adds a listener for the validation error event to the supplied property. Can accept either a String method name or a function reference as the handler callback
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
oScope |
Object | ||
vHandler |
function | String | ||
bCallNow |
Boolean |
<optional> |
Returns:
add Validation Success Listener(oProperty, oScope, vHandler, bCall Nowopt) → {module:br-presenter /property /Property Helper}
Adds a listener for the validation success event to the supplied property. Can accept either a String method name or a function reference as the handler callback
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
oScope |
Object | ||
vHandler |
function | String | ||
bCallNow |
Boolean |
<optional> |
Returns:
clear Property(oProperty, sTypeopt) → {module:br-presenter /property /Property Helper}
Removes any listener bound to the supplied property that was attached by this PropertyHelper
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
oProperty |
module:br-presenter |
||
sType |
String |
<optional> |
Returns:
remove All Listeners()
Removes all listeners attached through this PropertyHelper
remove Change Listeners(oProperty) → {module:br-presenter /property /Property Helper}
Remove change handlers from the selected property that have been attached through this PropertyHelper
Parameters:
Name | Type | Description |
---|---|---|
oProperty |
module:br-presenter |
Returns:
remove Validation Success Listeners(oProperty) → {module:br-presenter /property /Property Helper}
Remove validation success handlers from the selected property that have been attached through this PropertyHelper
Parameters:
Name | Type | Description |
---|---|---|
oProperty |
module:br-presenter |