yourlabs / autocomplete-light

WebComponents for autocompletion with server-side HTML generation: the perfect match for server-side frameworks. Mirrorr of yourlabs.io/oss/autocomplete-light

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autocomplete-Light: simple autocompletion web component

Difference with other HTML autocompletion elements:

  • defers the rendering of the select box to the server
  • lightweight javascript web component with no dependency

While it is best suited for server side framework integration, it may also be used on its own, to create a global navigation input like in the facebook top bar, as well as to create replacement widgets for HTML selects.

Demo

Clone the repository and run python serve.py

Usage

For usage, check the index.html source code

Testing

This module exposes a Python library to provide an API for Selenium and make integration testing easier with Python projects.

Install the python package with test dependencies:

# in repository clone
pip install -e .[test]
python serve.py &
py.test -sv

About

WebComponents for autocompletion with server-side HTML generation: the perfect match for server-side frameworks. Mirrorr of yourlabs.io/oss/autocomplete-light

License:MIT License


Languages

Language:JavaScript 43.2%Language:Python 37.9%Language:HTML 13.9%Language:CSS 5.1%