Help

Re: Filter items using HTML attributes with Vue.js instead of URL parameter

559 0
cancel
Showing results for 
Search instead for 
Did you mean: 
samanthablackes
4 - Data Explorer
4 - Data Explorer

Hello! Is it possible to filter items by adding the filtering formula inside a Vue.js attribute instead of a URL parameter? Like using v-if or similar…

Thanks!

1 Reply 1

This is an oldie, but in case anyone else is looking for something like this, check on this post and the link to the Github repo within - Vue JS v-if implemented here, might be of use:

<div v-for="element in item">
  <div v-bind:class="element.style">
    <tag v-if="element.style == 'img'" :is="element.style" v-bind:src="element.content"></tag>
    <tag v-else-if="element.style !== 'img'" :is="element.style">{{ element.content }}</tag>
  </div>
</div>