working on edit click and edit icon

This commit is contained in:
2020-03-24 19:32:27 +00:00
parent 90acf8f1c2
commit c84ab80477
2 changed files with 9 additions and 6 deletions

View File

@@ -13,13 +13,14 @@
:loading="fetching"
:placeholder="lt('Search')"
:search-input.sync="searchEntry"
:multiple="multiple"
:filter="customFilter"
hide-no-data
clearable
:no-filter="isTagFilter"
:prepend-icon="errorIcon"
@click:prepend="handleErrorClick"
:append-icon="errorIcon"
@click:append="handleErrorClick"
:prepend-icon="allowEdit ? 'fa-edit' : null"
@click:prepend="handleEditClick"
@mousedown="dropdown"
>
<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
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)
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!!!
@@ -123,7 +122,7 @@ export default {
type: Boolean,
default: false
},
multiple: {
allowEdit: {
type: Boolean,
default: false
},
@@ -182,6 +181,9 @@ export default {
data: "ay-start-form-picklist"
});
},
handleEditClick: function() {
console.log("Edit click", this.lastSelection);
},
selectionMade(e) {
this.clearErrors();
if (e == undefined) {

View File

@@ -4,6 +4,7 @@
v-model="selectedWidget"
:ayaType="ayaType().Widget"
:label="lt('Widget')"
:allowEdit="true"
>
</gz-pick-list>
<v-divider></v-divider>