[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 /* 2 YUI 3.17.2 (build 9c3c78e) 3 Copyright 2014 Yahoo! Inc. All rights reserved. 4 Licensed under the BSD License. 5 http://yuilibrary.com/license/ 6 */ 7 8 YUI.add('autocomplete-plugin', function (Y, NAME) { 9 10 /** 11 Binds an AutoCompleteList instance to a Node instance. 12 13 @module autocomplete 14 @submodule autocomplete-plugin 15 **/ 16 17 /** 18 Binds an AutoCompleteList instance to a Node instance. 19 20 @example 21 22 Y.one('#my-input').plug(Y.Plugin.AutoComplete, { 23 source: 'select * from search.suggest where query="{query}"' 24 }); 25 26 // You can now access the AutoCompleteList instance at Y.one('#my-input').ac 27 28 @class Plugin.AutoComplete 29 @extends AutoCompleteList 30 **/ 31 32 var Plugin = Y.Plugin; 33 34 function ACListPlugin(config) { 35 config.inputNode = config.host; 36 37 // Render by default. 38 if (!config.render && config.render !== false) { 39 config.render = true; 40 } 41 42 ACListPlugin.superclass.constructor.apply(this, arguments); 43 } 44 45 Y.extend(ACListPlugin, Y.AutoCompleteList, {}, { 46 NAME : 'autocompleteListPlugin', 47 NS : 'ac', 48 CSS_PREFIX: Y.ClassNameManager.getClassName('aclist') 49 }); 50 51 Plugin.AutoComplete = ACListPlugin; 52 Plugin.AutoCompleteList = ACListPlugin; 53 54 55 }, '3.17.2', {"requires": ["autocomplete-list", "node-pluginhost"]});
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |