2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00

make id of input-element customizeable

This commit is contained in:
WITT-AD\Micgme
2017-02-09 18:24:46 +01:00
parent e1a100a2a8
commit 861d457944
+9
View File
@@ -198,6 +198,7 @@
:placeholder="searchPlaceholder"
:readonly="!searchable"
:style="{ width: isValueEmpty ? '100%' : 'auto' }"
:id="inputId"
>
<i v-if="!noDrop" ref="openIndicator" role="presentation" class="open-indicator"></i>
@@ -407,6 +408,14 @@
noDrop: {
type: Boolean,
default: false
},
/**
* Sets the id of the input element.
* @type {String}
*/
inputId: {
type: String
}
},