nomadjimbob / mikio

Customizable, Bootstrap 4 inspired template for Dokuwiki
GNU General Public License v2.0
22 stars 6 forks source link

Add Typeahead support #40

Closed cmacmackin closed 2 years ago

cmacmackin commented 2 years ago

Shamelessly borrowing from the bootstrap3 template, this pull request adds the option to use a modified version of the typeahead library so that pages can be suggested while search terms are typed. The modifications to typeahead were so that elements are styled using Mikio class names, rather than standard Bootstrap ones.

If the user turns on this feature (the default) then the .search_typeahead class gets added to search input elements. Some JavaScript has been provided to set these up to use typeahead.

I'd be happy to change the default setting to turn this feature off, if that is desired for reasons of backward compatibility.

Note: This depends on #39.