datasource-function.js revision 65b755664437543e907b9557027a4a608cc84c31
986N/A * The DataSource utility provides a common configurable interface for widgets to 986N/A * access a variety of data, from JavaScript arrays to online database servers. 986N/A * Function subclass for the YUI DataSource utility. 986N/A * @class DataSource.Function 986N/A * @extends DataSource.Local 986N/A ///////////////////////////////////////////////////////////////////////////// 986N/A // DataSource.Function static properties 1185N/A ///////////////////////////////////////////////////////////////////////////// 986N/A * @value "DataSource.Function" 986N/A ///////////////////////////////////////////////////////////////////////////// 1185N/A // DataSource.Function Attributes 986N/A ///////////////////////////////////////////////////////////////////////////// 986N/A * @description Pointer to live data. 1185N/A * Context in which to execute the function. By default, is the DataSource 1185N/A * instance itself. If set, the function will receive the DataSource instance 1185N/A * as an additional argument. 986N/A * @param config {Object} Config object. 1185N/A * Passes query string to IO. Fires <code>response</code> event when 1185N/A * response is received asynchronously. 1185N/A * @param e {Event.Facade} Event Facade with the following properties: 1185N/A * <dt>tId (Number)</dt> <dd>Unique transaction ID.</dd> 1185N/A * <dt>request (Object)</dt> <dd>The request.</dd> 986N/A * <dt>callback (Object)</dt> <dd>The callback object with the following properties: 986N/A * <dt>success (Function)</dt> <dd>Success handler.</dd> 1185N/A * <dt>failure (Function)</dt> <dd>Failure handler.</dd> 1185N/A * <dt>scope (Object)</dt> <dd>Execution context.</dd> 1185N/A * <dt>cfg (Object)</dt> <dd>Configuration object.</dd>