How to reinitialize Owl Carousel after an ajax call?

后端 未结 7 1600
礼貌的吻别
礼貌的吻别 2020-12-20 12:12

I am trying to reinitialize Owl carousel after a successful ajax call. The ajax call will change the data but the view should stay the same.I am having an issue where the vi

相关标签:
7条回答
  • 2020-12-20 12:41

    Try it , its exist in owl documention :

    //Initialize Plugin
        $(".owl-carousel").owlCarousel()
    
        //get carousel instance data and store it in variable owl
        var owl = $(".owl-carousel").data('owlCarousel');
    
        owl.reinit(options)
    
    0 讨论(0)
提交回复
热议问题