Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

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

Topic Labels: Formulas
905 1
cancel
Showing results for 
Search instead for 
Did you mean: 

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>