simple autocompletion web component
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file autocomplete-light-1.1.1.tar.gz
.
File metadata
- Download URL: autocomplete-light-1.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.13.0 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e3ceaf214a53b001faacb858e3c0c69693f7a24a67ffb29ff1128f8af84884 |
|
MD5 | 9448a0c79a377f31ee293757f16e337f |
|
BLAKE2b-256 | 0cd6fb02d7b49dc0c479bf735b00dce20ce54bb5bdee11418f2cc7ad15d5c9ae |