The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 3 more by this user. Created: 07/17/12
Last CDN Push: 08/1/12
Build Tag: gallery-2012.08.01-13-16
Project: YUI 3
License: YUI BSD
YUI Version: 3.6.0pr4
Free for use.
Allows you to group and style AutoComplete results in the result list while maintaining keyboard navigation and aira support.
<script src="http://yui.yahooapis.com/3.6.0pr4/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.01-13-16'
}).use('gallery-autocomplete-list-group', function(Y) {
var AC = new Y.AutoComplete({
inputNode: '#acinput',
source: results,
resultFilters: 'charMatch',
resultTextLocator: 'description',
//AutoComplete Group
group: true,
groupFilter: 'source',
groupOrder: ['sku', 'description']
});
// Changing the built in templates
AC.GROUP_TEMPLATE = '<ul class="border"></ul>';
AC.DIVIDER_TEMPLATE = '<div class="divider"></div>';
AC.render();
});
All code on this site is licensed under the BSD License unless stated otherwise.