Here is the code I am currently working with:
<div class="container-fluid" id="networdapp" style="display:none;">
<div class="row" >
<div v-for="(result,i) in results" :key="i" class="col-sm-6" >
<div class="card m-3 h-240 bg-light" >
<div class="card-header text-center" > {{ result.title }} </div>
<div class="card-body" style="height:200px" >
<p class="card-text" v-html="result.prevDesc" ></p>
</div>
<div class="card-footer bg-transparent border-info">
<a href="/details" class="btn btn-info" @click="getData(i)" >Details</a>
</div>
</div>
</div>
</div>
</div>
I am looking to modify these generated col-sm-6
divs using a v-for loop in Vue.js. My objective is to initially make them all invisible, then gradually display them in groups of 5 using an event handler. Each click will reveal the next set of 5 divs, and so on. I believe I need to manipulate them programmatically. The content within {{result.title}}
and result.prevDesc
is functioning correctly.