function |
dataFunction
In-memory Javascript function that returns query results.
|
Class YAHOO.widget.DS_JSFunction
Object | +--YAHOO.widget.DataSource | +--YAHOO.widget.DS_JSFunction
class
YAHOO.widget.DS_JSFunction
Field Summary [top]
Fields inherited from class YAHOO.widget.DataSource [top]
Constructor Summary [top]
YAHOO.widget.DS_JSFunction
Implementation of YAHOO.widget.DataSource using a native Javascript struct as
its live data source.
Method Summary [top]
void |
doQuery
(<object> oCallbackFn, <string> sQuery, <object> oParent)
Queries the live data source defined by function for results.
|
Methods inherited from class YAHOO.widget.DataSource
Constructor Detail [top]
YAHOO.widget.DS_JSFunction
YAHOO.widget.DS_JSFunction
()
Implementation of YAHOO.widget.DataSource using a native Javascript struct as
its live data source.
- Parameters:
-
oFunction
- In-memory Javascript function that returns query results as an array of objects -
oConfigs
- Optional object literal of config params
Method Detail [top]
doQuery
void
doQuery
(<object> oCallbackFn, <string> sQuery, <object> oParent)
Queries the live data source defined by function for results. Results are
passed back to a callback function.
- Parameters:
-
oCallbackFn
- Callback function defined by oParent object to which to return results -
sQuery
- Query string -
oParent
- The object instance that has requested data