button.php
2 years ago
checkbox.php
2 years ago
collapse.php
2 years ago
colorpicker.php
2 years ago
component-wrapper.php
2 years ago
dimensions.php
2 years ago
f-select.php
2 years ago
fselect.php
2 years ago
iconpicker.php
2 years ago
input.php
2 years ago
list-table-heading.php
2 years ago
list-table-item.php
2 years ago
list-table.php
2 years ago
notice.php
2 years ago
pagination.php
2 years ago
popup.php
2 years ago
radio.php
2 years ago
repeater-item.php
2 years ago
repeater.php
2 years ago
select.php
2 years ago
switcher.php
2 years ago
tabs-panel.php
2 years ago
tabs.php
2 years ago
textarea.php
2 years ago
time.php
2 years ago
title.php
2 years ago
wp-media.php
2 years ago
select.php
33 lines
| 1 | <cx-vui-component-wrapper |
| 2 | :elementId="currentId" |
| 3 | :label="label" |
| 4 | :description="description" |
| 5 | :wrapper-css="wrapperCss" |
| 6 | :preventWrap="preventWrap" |
| 7 | v-if="isVisible()" |
| 8 | > |
| 9 | <select |
| 10 | :id="currentId" |
| 11 | :placeholder="placeholder" |
| 12 | :disabled="disabled" |
| 13 | :readonly="readonly" |
| 14 | :name="name" |
| 15 | :multiple="multiple" |
| 16 | v-model="currentValue" |
| 17 | :class="controlClasses()" |
| 18 | @focus="handleFocus" |
| 19 | @blur="handleBlur" |
| 20 | @change="handleInput" |
| 21 | > |
| 22 | <option |
| 23 | v-if="placeholder" |
| 24 | value="" |
| 25 | disabled |
| 26 | >{{ placeholder }}</option> |
| 27 | <option |
| 28 | v-for="option in options" |
| 29 | :value="option.value" |
| 30 | :selected="isOptionSelected( option )" |
| 31 | >{{ option.label }}</option> |
| 32 | </select> |
| 33 | </cx-vui-component-wrapper> |