# jetformbuilder/3.6.6/modules/framework/vue-ui/components/select.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 55 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/framework/vue-ui/components/select.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/framework/vue-ui/components/select.php
- Modified: 2023-11-20T11:46:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/framework/vue-ui/components/select.php#L10-L20`.

```php
<cx-vui-component-wrapper
	:elementId="currentId"
	:label="label"
	:description="description"
	:wrapper-css="wrapperCss"
	:preventWrap="preventWrap"
	v-if="isVisible()"
>
	<select
		:id="currentId"
		:placeholder="placeholder"
		:disabled="disabled"
		:readonly="readonly"
		:name="name"
		:multiple="multiple"
		v-model="currentValue"
		:class="controlClasses()"
		@focus="handleFocus"
		@blur="handleBlur"
		@change="handleInput"
	>
		<option
			v-if="placeholder"
			value=""
			disabled
		>{{ placeholder }}</option>
		<template v-if="groups.length">
			<optgroup v-for="group in groups" :label="group.label">
				<option
					v-for="option in group.options"
					:value="option.value"
					:selected="isOptionSelected( option )"
				>{{ option.label }}</option>
			</optgroup>
		</template>
		<template v-else>
            <template v-for="option in options">
                <optgroup v-if="option.hasOwnProperty('options')" :label="option.label">
                    <option
                        v-for="option in option.options"
                        :value="option.value"
                        :selected="isOptionSelected( option )"
                    >{{ option.label }}</option>
                </optgroup>
                <option
                    v-if="!option.hasOwnProperty('options')"
                    :value="option.value"
                    :selected="isOptionSelected( option )"
                >{{ option.label }}</option>
            </template>
		</template>
	</select>
	<slot></slot>
</cx-vui-component-wrapper>

```
