Typeahead
Typeahead
PTypeahead filters an in-memory list of items and emits the selected ID.
Demo
Usage
<PTypeahead :items="items" :selected-id="selectedId" @select="selectedId = $event"> Customer</PTypeahead>Props
| Prop | Type | Default | Notes |
|---|---|---|---|
selectedId | Number | null | Selected item ID. |
items | Array | [] | Items with { id, label }. |
disabled | Boolean | false | Disables input. |
Events
| Event | Payload | Description |
|---|---|---|
select | Number | null | Emits selected item ID. |
Slots
| Slot | Description |
|---|---|
| default | Input label text. |