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

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:TypeScript

Type:automad-package

1.0.0 2020-01-05 16:04 UTC

This package is auto-updated.

Last update: 2020-07-25 13:19:00 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