nx.Observable Class
Item Index
Methods
- dispose
- monitor static
- watch static
- clearBinding
- getBinding
- notify
- setBinding
- unwatch
Methods
dispose
()
Dispose current object.
monitor
(
static
-
target
-
pathlist
-
callback
Monitor several paths of target at the same time, any value change of any path will trigger the callback with all values of all paths.
Parameters:
Returns:
Resource stub object, with release and affect methods.
release: release the current monitoring.
affect: invoke the callback with current values immediately.
watch
(
static
-
target
-
path
-
callback
-
context
This method in order to watch the change of specified path of specified target.
Parameters:
Returns:
Resource stub object, with release and affect methods.
release: unwatch the current watching.
affect: invoke the callback with current value immediately.
getBinding
(
-
prop
Get existing binding object for specified property.
Parameters:
-
prop
Object
Returns:
:
setBinding
(
-
prop
-
expr
-
source
Set binding for specified property.