<f7-tabs animated swipeable id="swipeable-tabs">
<f7-tab class="page-content" id="tab-recommend" tab-active>recommend</f7-tab>
<f7-tab class="page-content" id="tab-follow">follow</f7-tab>
<f7-tab class="page-content" id="tab-channel">channel</f7-tab>
</f7-tabs>
…
onF7Ready() {
console.log(this.$$(’#swipeable-tabs’)[0]); // the print object includes swiper
console.log(this.$$(’#swipeable-tabs’)[0].swiper); // print undefined
console.log(this.$f7.swiper.get(’#swipeable-tabs’)); // print undefined
}
I guess the init of the tabs’ swiper is after the triggering of onF7Ready. So, how to get the swiper of tabs correctly?