Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 652 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 652 Bytes

KnockoutOwlCarousel2

This is Knockout binding that allow you easily use Owl.Carousel 2 with observableArray and dynamic generated content.

Usage

 <div class="owl-carousel owl-theme" data-bind="owlCarousel: {data: items, options:{margin:10, nav:true }}">
    <div class="item" data-bind="text: $data"></div>    
 </div>

Live example on jsfiddle.net

owlCarousel binding has same parameters like foreach, plus extra parameter called "options".

"options" is optional parameter which contain settings to initialize owlCarousel

Enjoy