2
YUI 3.13.0 (build 508226d)
3
Copyright 2013 Yahoo! Inc. All rights reserved.
4
Licensed under the BSD License.
5
http://yuilibrary.com/license/
8
YUI.add('autocomplete-plugin', function (Y, NAME) {
11
Binds an AutoCompleteList instance to a Node instance.
14
@submodule autocomplete-plugin
18
Binds an AutoCompleteList instance to a Node instance.
22
Y.one('#my-input').plug(Y.Plugin.AutoComplete, {
23
source: 'select * from search.suggest where query="{query}"'
26
// You can now access the AutoCompleteList instance at Y.one('#my-input').ac
28
@class Plugin.AutoComplete
29
@extends AutoCompleteList
32
var Plugin = Y.Plugin;
34
function ACListPlugin(config) {
35
config.inputNode = config.host;
38
if (!config.render && config.render !== false) {
42
ACListPlugin.superclass.constructor.apply(this, arguments);
45
Y.extend(ACListPlugin, Y.AutoCompleteList, {}, {
46
NAME : 'autocompleteListPlugin',
48
CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')
51
Plugin.AutoComplete = ACListPlugin;
52
Plugin.AutoCompleteList = ACListPlugin;
55
}, '3.13.0', {"requires": ["autocomplete-list", "node-pluginhost"]});