Let caller define placeholder and icon for autocomplete field

This commit is contained in:
Lance Edgar 2020-03-01 17:32:37 -06:00
parent ce70eb2b91
commit 68a349383c

View file

@ -4,6 +4,8 @@
:name="name"
v-show="!selected"
v-model="autocompleteValue"
:placeholder="placeholder"
:icon="icon"
:data="data"
@typing="getAsyncData"
@select="selectionMade"
@ -29,6 +31,14 @@ export default {
serviceUrl: String,
value: String,
initialLabel: String,
placeholder: {
type: String,
default: null,
},
icon: {
type: String,
default: null,
},
},
data() {
let selected = null