# Yahoo! UI Library

### autocomplete 3.3.0

Yahoo! UI Library > autocomplete > Plugin.AutoComplete
Search:
Filters Show Private Show Protected Show Deprecated

## Class Plugin.AutoComplete - extends AutoCompleteList

Binds an AutoCompleteList instance to a Node instance.

Example:

    Y.one('#my-input').plug(Y.Plugin.AutoComplete, {
      source: 'select * from search.suggest where query="{query}"'
    });

    // You can now access the AutoCompleteList instance at Y.one('#my-input').ac

#### Properties inherited from Plugin.Host:

`PluginHost`

#### Properties inherited from Widget:

`_UI_ATTRS, BOUNDING_TEMPLATE, CONTENT_TEMPLATE, DEF_PARENT_NODE, DEF_UNIT, UI_EVENTS`

#### Properties inherited from AutoCompleteBase:

`_YQL_SOURCE_REGEX`

#### Properties inherited from WidgetStack:

``

#### Properties inherited from Attribute:

``

#### Properties inherited from WidgetPositionAlign:

``

#### Properties inherited from Base:

`name`

#### Properties inherited from WidgetPosition:

``

#### Methods inherited from Plugin.Host:

`_destroyPlugins, _initPlugins, hasPlugin, plug, unplug`

#### Methods inherited from Widget:

`_applyParsedConfig, _applyParser, _bindAttrUI, _bindDOM, _bindUI, _createUIEvent, _defaultCB, _defRenderFn, _destroyUIEvents, _getHtmlParser, _getSrcNode, _getStrings, _getUIEventNode, _guid, _initUIEvent, _isUIEvent, _onDocFocus, _onDocMouseDown, _removeLoadingClassNames, _renderBox, _renderBoxClassNames, _renderUI, _setAttrUI, _setBB, _setBox, _setCB, _setStrings, _strSetter, _syncAttrUI, _syncUI, _uiSetDim, _uiSetDisabled, _uiSetFocused, _uiSetHeight, _uiSetTabIndex, _uiSetVisible, _uiSetWidth, _uiSizeCB, _unbindDOM, _unbindUI, _validTabIndex, bindUI, blur, destructor, disable, enable, focus, getClassName, getDefaultLocale, getSkinName, getString, getStrings, hide, initializer, render, renderer, renderUI, show, syncUI, toString`

#### Methods inherited from WidgetPosition:

`_afterXYChange, _bindUIPosition, _getX, _getY, _renderUIPosition, _setX, _setY, _syncUIPosition, _uiSetXY, _validateXY, move, syncXY`

#### Methods inherited from WidgetStack:

`_addShimResizeHandlers, _afterShimChange, _afterZIndexChange, _bindUIStack, _destroyShim, _detachStackHandles, _getShimTemplate, _renderShim, _renderShimDeferred, _renderUIStack, _setZIndex, _syncUIStack, _uiSetShim, _uiSetZIndex, sizeShim`

#### Methods inherited from Attribute:

`_addAttrs, _addLazyAttr, _defAttrChangeFn, _fireAttrChange, _getAttr, _getAttrCfg, _getAttrInitVal, _getAttrs, _getStateVal, _isLazyAttr, _normAttrVals, _protectAttrs, _set, _setAttr, _setAttrs, _setAttrVal, _setStateVal, addAttr, addAttrs, attrAdded, get, getAttrs, modifyAttr, removeAttr, reset, set, setAttrs`

#### Methods inherited from WidgetPositionAlign:

`_afterAlignChange, _bindUIStack, _doAlign, _setAlignCenter, _syncUIPosAlign, _uiSetAlign, align, centered`

#### Methods inherited from EventTarget:

`_getType, _monitor, _parseType, addTarget, after, before, bubble, detach, detachAll, fire, getEvent, getTargets, on, once, parseType, publish, removeTarget, subscribe, unsubscribe, unsubscribeAll`

#### Methods inherited from Base:

`_aggregateAttrs, _defDestroyFn, _defInitFn, _destroyHierarchy, _filterAttrCfs, _getAttrCfgs, _getClasses, _initHierarchy, _initHierarchyData, _preInitEventCfg, destroy, init, toString`

#### Methods inherited from AutoCompleteList:

`_activateNextItem, _activatePrevItem, _add, _afterActiveItemChange, _afterAlwaysShowListChange, _afterHoveredItemChange, _afterMouseOut, _afterMouseOver, _afterResultsChange, _afterVisibleChange, _ariaSay, _bindInput, _bindKeys, _bindList, _clear, _createAriaNode, _createItemNode, _createListNode, _defSelectFn, _getFirstItemNode, _getLastItemNode, _initKeys, _keyDown, _keyEnter, _keyEsc, _keyTab, _keyUp, _onInputKey, _onItemClick, _onListInputBlur, _syncResults, _syncVisibility, _unbindKeys, hide, selectItem`

#### Methods inherited from AutoCompleteBase:

`_afterValueChange, _bindUIACBase, _createArraySource, _createFunctionSource, _createIOSource, _createJSONPSource, _createObjectSource, _createStringSource, _createYQLSource, _defaultYQLLocator, _defClearFn, _defQueryFn, _defResultsFn, _destructorACBase, _functionValidator, _getObjectValue, _jsonpFormatter, _onInputBlur, _onInputValueChange, _onResponse, _parseResponse, _parseValue, _setLocator, _setRequestTemplate, _setResultFilters, _setResultHighlighter, _setSource, _sourceSuccess, _syncBrowserAutocomplete, _syncUIACBase, _updateValue, sendRequest`

#### Events inherited from Widget:

`boundingBoxChange, contentBoxChange, disabledChange, focusedChange, heightChange, idChange, localeChange, renderChange, renderedChange, srcNodeChange, stringsChange, tabIndexChange, visibleChange, widget:contentUpdate, widget:render, widthChange,`

#### Events inherited from AutoCompleteBase:

`allowBrowserAutocompleteChange, allowTrailingDelimiterChange, clear, inputNodeChange, maxResultsChange, minQueryLengthChange, query, queryChange, queryDelayChange, queryDelimiterChange, requestTemplateChange, resultFiltersChange, resultFormatterChange, resultHighlighterChange, resultListLocatorChange, results resultsChange resultTextLocatorChange sourceChange tokenInputChange valueChange yqlEnvChange yqlProtocolChange`

#### Events inherited from WidgetStack:

`shimChange, zIndexChange,`

#### Events inherited from WidgetPositionAlign:

`alignChange, centeredChange,`

#### Events inherited from Base:

`destroy, destroyedChange, init, initializedChange,`

#### Events inherited from AutoCompleteList:

`activateFirstItemChange, activeItemChange, alwaysShowListChange, circularChange, hoveredItemChange, listNodeChange, scrollIntoViewChange, select, stringsChange, tabSelectChange,`

#### Events inherited from WidgetPosition:

`xChange, xyChange, yChange,`

#### Configuration attributes inherited from Widget:

`boundingBox, contentBox, disabled, focused, height, id, locale render rendered srcNode strings tabIndex visible width`

#### Configuration attributes inherited from AutoCompleteBase:

`allowBrowserAutocomplete, allowTrailingDelimiter, inputNode, maxResults, minQueryLength, query, queryDelay, queryDelimiter, requestTemplate, resultFilters resultFormatter resultHighlighter resultListLocator results resultTextLocator source tokenInput value yqlEnv yqlProtocol`

#### Configuration attributes inherited from WidgetStack:

`shim zIndex`

#### Configuration attributes inherited from WidgetPositionAlign:

`align centered`

#### Configuration attributes inherited from Base:

`destroyed initialized`

#### Configuration attributes inherited from AutoCompleteList:

`activateFirstItem, activeItem, alwaysShowList, circular, hoveredItem listNode scrollIntoView strings tabSelect`

#### Configuration attributes inherited from WidgetPosition:

`x, xy y`

Copyright © 2011 Yahoo! Inc. All rights reserved.