I´m trying to get a swipable tab inside a card-content to work in a dynamical created popup. But I´m missing something since it does´t work. I Think that when it is init then it should get class swiper-init right? So then you know it is init the right way!?
< div class="card-content"> <div class="card-content-inner kategorier-card-content-inner">
<div id="tab-1" class="tab tab-active page-content"> <div class="row"> some content </div> </div> <div id="tab-2" class="tab page-content"> <div class="row"> some content </div> </div>
</div>
And in my .js file I have this.
var swiper1113;
$$(document).on("click",".visakategorierna", function(e){
swiper1113 = app.swiper.create('.tabs-swipeable-wrap-kategorier', {
init:true,
slidesPerView: 1,
});
});
app.on(‘tabShow’, function (e, t) {
console.log('hello from: ’ + e.id)
})
I writes hello with the id number? So why does´t it work? It is not init the swiper.
Any input appreciated, thanks.