Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.21 KB

README.md

File metadata and controls

27 lines (23 loc) · 1.21 KB

complete.ly

A javascript library for autocompletion

Changelog compared to original repo:

  • New classes for html elements (completely-wrapper, completely-prompt, completely-input, completely-hint, completely-dropdown)
  • Now it can be possible to add autocomplete feature also directly to existing input elements

Changelog compared to forked repo:

  • Project is focused on providing suggestions, even when no input has been entered yet.

    hide autocomplete box by default if input is not focused show autocomplete box on focus, hide on blur

  • Comply with input placeholders
  • Case insensitive matching
  • Inherit suggestions width from input element
  • Comply with input margin, borders, etc.
  • Passed HTML element must now be the input element, not a container.
  • Inherit font style, size, color from input element
  • Play nicely with margins, paddings, and formatted inputs (e.g. Bootstrap themes)
  • Cross browser (tested on latest Chrome, Firefox, and IE8)
  • Removed redundant custom cursor
  • Dropdown overflow is now automatic, scrollbars are only shown when necessary
  • Dropdown height is limited to 10 times the height of the input element (then a scrollbar is shown)

ToDo:

  • Test on IE9, IE10, mobile browsers, and Safari