automad / bootstrap-autocomplete
A wrapper for the bootstrap-4-autocomplete npm package that let's you create autocomplete dropdowns for search fields in Automad templates
Fund package maintenance!
marcantondahmen
Ko Fi
paypal.me/marcantondahmen
Installs: 810
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Language:TypeScript
Type:automad-package
Requires
This package is auto-updated.
Last update: 2025-02-24 20:19:58 UTC
README
This Automad package is a wrapper for the bootstrap-4-autocomplete npm package and makes it easy to create Bootstrap 4 autocomplete dropdowns for search fields in Automad templates.
Usage
To get a basic dropdown with the default settings, simply use the package as follows:
<@ Automad/Bootstrap/Autocomplete @>
The default settings can be changed as well.
<@ Automad/Bootstrap/Autocomplete {
inputSelector: '#search',
highlightClass: 'text-primary'
} @>
Options
Find below a complete list of available options.
Parameter | Default |
---|---|
inputSelector |
"#search" |
treshold |
3 |
highlightClass |
"text-primary" |
maximumItems |
10 |