YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

AutoComplete Widget  2.4.1

Yahoo! UI Library > autocomplete > YAHOO.widget.DS_JSArray

Show Private Show Protected

Class YAHOO.widget.DS_JSArray - extends YAHOO.widget.DataSource

Implementation of YAHOO.widget.DataSource using a native Javascript array as its live data source.


YAHOO.widget.DS_JSArray ( aData , oConfigs )
aData <String[]> In-memory Javascript array of simple string data.
oConfigs <Object> (optional) Object literal of config params.


data - Array

In-memory Javascript array of strings.



void doQuery ( oCallbackFn , sQuery , oParent )
Queries the live data source defined by data for results. Results are passed back to a callback function.
oCallbackFn <HTMLFunction> Callback function defined by oParent object to which to return results.
sQuery <String> Query string.
oParent <Object> The object instance that has requested data.
Returns: void

Copyright © 2007 Yahoo! Inc. All rights reserved.