jua
jquery-ui.autocomplete.scroll
npm i jquery-ui.autocomplete.scroll
jua

jquery-ui.autocomplete.scroll

Scrollable jQuery UI Autocomplete for long item list

by anseki

0.1.9 (see all)License:MITTypeScript:Not Found
npm i jquery-ui.autocomplete.scroll
Readme

Scrollable jQuery UI Autocomplete

Scrollable jQuery UI Autocomplete Plugin for long items list.
CSS max-height, overflow-y and padding-right can make scrollable list easy. But that is not beautiful. This plugin calculate with items and height of it.
See DEMO

Usage

  • Load the jquery.ui.autocomplete.scroll.min.js script file after loading jquery.ui.autocomplete.js etc.
  • The maxShowItems is added to Autocomplete options. It accept the number of items which is max height of items list.

Example

$('#txt1').autocomplete({
  maxShowItems: 5, // Make list height fit to 5 items when items are over 5.
  source: list1
});
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate