working on edit click and edit icon
This commit is contained in:
@@ -13,13 +13,14 @@
|
|||||||
:loading="fetching"
|
:loading="fetching"
|
||||||
:placeholder="lt('Search')"
|
:placeholder="lt('Search')"
|
||||||
:search-input.sync="searchEntry"
|
:search-input.sync="searchEntry"
|
||||||
:multiple="multiple"
|
|
||||||
:filter="customFilter"
|
:filter="customFilter"
|
||||||
hide-no-data
|
hide-no-data
|
||||||
clearable
|
clearable
|
||||||
:no-filter="isTagFilter"
|
:no-filter="isTagFilter"
|
||||||
:prepend-icon="errorIcon"
|
:append-icon="errorIcon"
|
||||||
@click:prepend="handleErrorClick"
|
@click:append="handleErrorClick"
|
||||||
|
:prepend-icon="allowEdit ? 'fa-edit' : null"
|
||||||
|
@click:prepend="handleEditClick"
|
||||||
@mousedown="dropdown"
|
@mousedown="dropdown"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend-item v-if="hasError()">
|
<template v-slot:prepend-item v-if="hasError()">
|
||||||
@@ -66,8 +67,6 @@ PRE-FILL
|
|||||||
NO prefill, fills only on user action or with defaults to save bandwidth. User must drop down to initiate action or type search text
|
NO prefill, fills only on user action or with defaults to save bandwidth. User must drop down to initiate action or type search text
|
||||||
|
|
||||||
|
|
||||||
todo multiple selection
|
|
||||||
- bind value would be an array in this case, should I just change it to always be an array or maybe alternate control entirely for multiple since that's rare
|
|
||||||
todo: option to display icon to open the record selected, (we have the type and the id and in v7 you could click on most titles to navigate to that record)
|
todo: option to display icon to open the record selected, (we have the type and the id and in v7 you could click on most titles to navigate to that record)
|
||||||
if I add that then maybe need a "new" option on edit forms because it's a two step way to get to adding a new one of whatever it is without having to go
|
if I add that then maybe need a "new" option on edit forms because it's a two step way to get to adding a new one of whatever it is without having to go
|
||||||
completely out of the page and hunt around lists and shit!!!
|
completely out of the page and hunt around lists and shit!!!
|
||||||
@@ -123,7 +122,7 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
multiple: {
|
allowEdit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
@@ -182,6 +181,9 @@ export default {
|
|||||||
data: "ay-start-form-picklist"
|
data: "ay-start-form-picklist"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleEditClick: function() {
|
||||||
|
console.log("Edit click", this.lastSelection);
|
||||||
|
},
|
||||||
selectionMade(e) {
|
selectionMade(e) {
|
||||||
this.clearErrors();
|
this.clearErrors();
|
||||||
if (e == undefined) {
|
if (e == undefined) {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
v-model="selectedWidget"
|
v-model="selectedWidget"
|
||||||
:ayaType="ayaType().Widget"
|
:ayaType="ayaType().Widget"
|
||||||
:label="lt('Widget')"
|
:label="lt('Widget')"
|
||||||
|
:allowEdit="true"
|
||||||
>
|
>
|
||||||
</gz-pick-list>
|
</gz-pick-list>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
|
|||||||
Reference in New Issue
Block a user