From a84fc8c1b61c4d969dcf7857e8735fc154c74a7c Mon Sep 17 00:00:00 2001 From: Daniel Herrero Date: Tue, 14 Nov 2017 08:45:56 +0100 Subject: [PATCH] new autoComplete option to custom filter --- client/client/src/basic-data/basic-data.html | 4 +++- client/core/src/autocomplete/autocomplete.js | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/client/client/src/basic-data/basic-data.html b/client/client/src/basic-data/basic-data.html index 07c60750e..00fca8fd0 100644 --- a/client/client/src/basic-data/basic-data.html +++ b/client/client/src/basic-data/basic-data.html @@ -28,7 +28,9 @@ show-field="name" value-field="id" select-fields="surname" - label="Salesperson"> + label="Salesperson" + filter-search="{where: {or: [{name: {regexp: 'search'}}, {surname: {regexp: 'search'}}]}}" + >