AndyJames
10/9/2019 - 4:41 PM

Site Search

<div class="site-search">
  <div class="site-search-input">
    <input
      type="text"
      placeholder="App Search..."
      :value="getValue('FILTER_NAME_HERE', 'INDEX_NAME_HERE')"
      v-on:input="siteSearch('FILTER_NAME_HERE', 'INDEX_NAME_HERE', $event)"
    />
  </div>
  <div v-if="isSearchingFilter('FILTER_NAME_HERE', 'INDEX_NAME_HERE')" class="site-search-results">
    <div
      v-for="result in getResultsByFilter('FILTER_NAME_HERE', 'INDEX_NAME_HERE')"
      :key="result.key"
    >{{result.name}}</div>
  </div>
</div>
siteSearch: {
  field: 'name, description, propertyType, summary',
  component: 'siteSearch'
},