@placekit/autocomplete-js
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -1,2 +0,2 @@ | ||
/*! @placekit/autocomplete-js v1.0.0-alpha.5 | © placekit.io | MIT license | https://github.com/placekit/autocomplete-js#readme */ | ||
/*! @placekit/autocomplete-js v1.0.0-alpha.6 | © placekit.io | MIT license | https://github.com/placekit/autocomplete-js#readme */ | ||
import type { PKOptions, PKResult } from '@placekit/client-js'; | ||
@@ -45,2 +45,5 @@ | ||
formatValue?: (item: PKResult) => string; | ||
strategy?: 'absolute' | 'fixed'; | ||
flip?: boolean; | ||
className?: string; | ||
}; |
{ | ||
"name": "@placekit/autocomplete-js", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"author": "PlaceKit <support@placekit.io>", | ||
@@ -5,0 +5,0 @@ "description": "PlaceKit Autocomplete JavaScript library", |
@@ -157,3 +157,6 @@ <h1 align="center"> | ||
| `template` | AutoComplete | `(item: object) => string` | [see index.js](./src/index.js#L24-L39) | Suggestion item formatting function. | | ||
| `formatValue` | AutoComplete | `(item: object) => string` | [see index.js](./src/index.js#L40) | Input value formatting function when selected from list. } | ||
| `formatValue` | AutoComplete | `(item: object) => string` | [see index.js](./src/index.js#L40) | Input value formatting function when selected from list. | | ||
| `strategy` | AutoComplete | `'absolute' | 'fixed'` | `absolute` | [Popper positioning strategy](https://popper.js.org/docs/v2/constructors/#strategy) | | ||
| `flip` | AutoComplete | `boolean` | `false` | Flip position top when overflowing. | | ||
| `className` | AutoComplete | `string` | `undefined` | Additional suggestions panel CSS class(es). | | ||
| `maxResults` | JS client | `integer` | `5` | Number of results per page. | | ||
@@ -160,0 +163,0 @@ | `language` | JS client | `string?` | `undefined` | Language of the results, two-letter ISO language code. | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
254113
6329
373