Skip to content

Provide a better built-in suggestion engine #115

Open
@tvararu

Description

@tvararu

The progressive enhancement approach already uses a very simple suggestion engine. It would be easier to use the autocomplete if it offered an API that was as simple as:

accessibleAutocomplete({
  element: document.querySelector('#autocomplete-container'),
  options: ['United Kingdom', 'United States']
})

And as a later feature, supporting (at a basic level):

  • custom weighting
  • synonyms / aliases (e.g. UK for United Kingdom)
  • highlighting matched text
  • unicode support (diacritics)

Some work on this can be based on the openregister-picker-engine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions