:label="labelText"
trailing-button-icon="close"
:show-trailing-button="searchTerm !== ''"
+ @update:value="searchTermChanged"
@trailing-button-click="clearSearch">
<Magnify :size="20" />
</NcTextField>
this.clearSearch()
this.opened = false
},
+ searchTermChanged(term) {
+ this.$emit('search-term-change', term)
+ },
},
}
</script>
<SearchableList :label-text="t('core', 'Search people')"
:search-list="userContacts"
:empty-content-text="t('core', 'Not found')"
+ @search-term-change="debouncedFilterContacts"
@item-selected="applyPersonFilter">
<template #trigger>
<NcButton>
results: [],
contacts: [],
debouncedFind: debounce(this.find, 300),
+ debouncedFilterContacts: debounce(this.filterContacts, 300),
showDateRangeModal: false,
internalIsVisible: false,
}