import * as ko from "knockout"; import template from "./carousel.html"; import { Component, OnMounted } from "@paperbits/common/ko/decorators"; import { StyleModel } from "@paperbits/common/styles"; import { CarouselItemViewModel } from "./carouselItemViewModel"; @Component({ selector: "carousel", template: template }) export class CarouselViewModel { public styles: ko.Observable; public carouselItems: ko.ObservableArray; public activeItemIndex: ko.Observable; public showControls: ko.Observable; public showIndicators: ko.Observable; public autoplay: ko.Observable; public pauseOnHover: ko.Observable; public autoplayInterval: ko.Observable; constructor() { this.carouselItems = ko.observableArray(); this.styles = ko.observable(); this.activeItemIndex = ko.observable(0); this.showControls = ko.observable(); this.showIndicators = ko.observable(); this.autoplay = ko.observable(); this.pauseOnHover = ko.observable(); this.autoplayInterval = ko.observable(); } }