Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansieder committed Oct 21, 2020
1 parent cd0a3a4 commit 9e8396e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ npm i vue-autosearch

### `options`
- an array containing elements typed as { id: number; name: string }
- can alternatively be a ref with an empty array, which will be populated later with data (asynchronous without using a custom searchFunction)
- example usage: `v-bind:options="[{ id: 1, name: 'Tesla Model S' }, { id: 2, name: 'Tesla Model 3' }]"`
- defaults to null
- when passing an options array, the options will be directly shown in the output when the user clicks or focusses the search input
Expand Down

0 comments on commit 9e8396e

Please sign in to comment.