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

1.0.0 2020-01-05 16:04 UTC

This package is auto-updated.

Last update: 2024-04-24 18:41:55 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