Skip to content

MobileTokenizer ​

A multi-select input for narrow and touch screens. Its trigger opens a bottom sheet for searching, selecting, and creating entries.

Import ​

ts
import { MobileTokenizer } from '@astryx-vue/lab'

Props ​

NameTypeDefaultDescription
modelValuereadonly T[][]Selected entries, bound with v-model.
labelstringRequiredField label and accessible sheet name.
searchSourceSearchSource<T>RequiredSync or async search source with optional bootstrap.
placeholderstringundefinedTrigger placeholder.
descriptionstringundefinedSupporting text below the label.
isOptional / isDisabledbooleanfalseOptional marker or disabled state.
hasCreatebooleanfalseAllows creating entries.
maxEntriesnumberundefinedMaximum selection count.
maxMenuItemsnumberundefinedMaximum retained search results.
minQueryLengthnumberundefinedMinimum query length.
debounceMsnumberundefinedSearch debounce in milliseconds.
emptySearchResultsTextstringBuilt-in textNo-results text.

Entries have { id, label, disabled?, description? }. search receives the query and an optional AbortSignal, making it suitable for remote sources.

Events ​

In addition to update:modelValue, the component emits change, update:query, changeQuery, and openChange. Changes distinguish add, create, and remove.