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.
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'
} @>
Find below a complete list of available options.
Parameter | Default |
---|---|
inputSelector |
"#search" |
treshold |
3 |
highlightClass |
"text-primary" |
maximumItems |
10 |