Skip to content

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

PropTypeDefaultNotes
selectedIdNumbernullSelected item ID.
itemsArray[]Items with { id, label }.
disabledBooleanfalseDisables input.

Events

EventPayloadDescription
selectNumber | nullEmits selected item ID.

Slots

SlotDescription
defaultInput label text.