Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/firelemons/abbreviation-autocomplete

An autocomplete for abbreviations/acronyms searching by description rather than the abbreviation text.
https://github.com/firelemons/abbreviation-autocomplete

autocomplete component component-library vue

Last synced: 22 days ago
JSON representation

An autocomplete for abbreviations/acronyms searching by description rather than the abbreviation text.

Awesome Lists containing this project

README

        

# Abbreviation-Autocomplete
An autocomplete for abbreviations/acronyms searching by description rather than the abbreviation text.

![autocomplete_screenshot](https://raw.githubusercontent.com/FireLemons/DocumentationMaterials/3adbd2389ba4b9750b4c2cf03a855c3ed31f3b80/img/screenshot.png)
### [Live Example](https://firelemons.github.io/AutocompleteExample/vue/)

## Props
##### data
The autocomplete options

The options are an array of objects in the form

{
a: "Abbreviation or Acronym",
d: "Definition or Description"
}

e.g.

[
{
a:"EG",
d:"Egypt"
},
{
a:"SV",
d:"El Salvador"
}
]

##### limit(Optional)
The autocomplete results limit
`Infinity` by default
##### min-search-text-length(Optional)
The minimum number of characters typed before autocomplete results are displayed
1 by default
##### placeholder(Optional)
Placeholder text for the search text input

## Events
##### @update:search-text
Triggered whenever the search text changes
Emits the text of the autocomplete search

##### @select
Triggered after selecting an option in the dropdown
Emits the object representing the option selected