Skip to content

VfEzSmartSelect

Simplified wrapper around VfSmartSelect for string enum or key-value options.

Import

typescript
import { VfEzSmartSelect } from '@zyno-io/vue-foundation';

Basic Usage

vue
<!-- Array of strings -->
<VfEzSmartSelect v-model="status" :options="['active', 'inactive', 'pending']" null-title="All statuses" />

<!-- Key-value object -->
<VfEzSmartSelect v-model="role" :options="{ admin: 'Administrator', user: 'Regular User', guest: 'Guest' }" placeholder="Select role..." />

Props

PropTypeDescription
modelValueT | nullSelected value (v-model)
options{ [key in T]: string } | T[]Options as object map or string array
nullTitlestringText for deselect option
placeholderstringInput placeholder
formatter(label: string, key: T) => stringCustom label formatter
namestringHTML name attribute

Demo