This commit is contained in:
2020-03-19 19:57:38 +00:00
parent f122f6197e
commit 0845cf1898
2 changed files with 10 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
v-model="selected" v-model="selected"
return-object return-object
:items="searchResults" :items="searchResults"
:label="Label" :label="label"
item-text="name" item-text="name"
item-value="id" item-value="id"
item-disabled="!active" item-disabled="!active"
@@ -38,11 +38,13 @@
//NOTE: have to import lodash directly here as no combination was working with the window.$gz._ //NOTE: have to import lodash directly here as no combination was working with the window.$gz._
//it would not recognize window in the function call //it would not recognize window in the function call
import _ from "../libs/lodash.min.js"; import _ from "../libs/lodash.min.js";
//todo: drop down get default 100 on non-search
//todo: empty item support //todo: empty item support
//todo: custom filter (highlight in results) that works with tags (ignore tag part and filter as normal) //todo: custom filter (highlight in results) that works with tags (ignore tag part and filter as normal)
//todo: validation error is obscured by no-data element //todo: validation error is obscured by no-data element
//todo: set actual seleted ID value from our local selected whole object so outer form just gets id //todo: set actual seleted ID value from our local selected whole object so outer form just gets id
//todo test multiple selection //todo test multiple selection
//todo: search only property that forces user to search vs just drop down and get default 100
export default { export default {
created() { created() {
@@ -95,7 +97,7 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
Label: { type: String, default: "" } label: { type: String, default: "" }
}, },
watch: { watch: {
searchEntry(val) { searchEntry(val) {

View File

@@ -3,11 +3,15 @@
<gz-pick-list <gz-pick-list
v-model="selectedWidget" v-model="selectedWidget"
:ayaType="ayaType().Widget" :ayaType="ayaType().Widget"
Label="Widget" :label="lt('Widget')"
> >
</gz-pick-list> </gz-pick-list>
<v-divider></v-divider> <v-divider></v-divider>
<gz-pick-list v-model="selectedUser" :ayaType="ayaType().User" Label="User"> <gz-pick-list
v-model="selectedUser"
:ayaType="ayaType().User"
:label="lt('User')"
>
</gz-pick-list> </gz-pick-list>
<v-divider></v-divider> <v-divider></v-divider>
<div>FORM Selected Widget: {{ selectedWidget }}</div> <div>FORM Selected Widget: {{ selectedWidget }}</div>