• Carousel

    import { Components } from "gd-sprest-bs";

    // Create the carousel
    let el = document.querySelector("#carousel");
    let carousel = Components.Carousel({
    el: el,
    enableControls: true,
    enableIndicators: true,
    id: "carouselDemo",
    items: [
    {
    captions: "<h5>First Slide</h5>",
    imageUrl: "https://via.placeholder.com/400x200",
    imageAlt: "First Slide",
    isActive: true
    },
    {
    captions: "<h5>Second Slide</h5>",
    imageUrl: "https://via.placeholder.com/400x200",
    imageAlt: "Second Slide"
    },
    {
    captions: "<h5>Third Slide</h5>",
    imageUrl: "https://via.placeholder.com/400x200",
    imageAlt: "Third Slide"
    }
    ]
    });

    Parameters

    • props: ICarouselProps<HTMLElement>
    • Optional template: string
    • Optional slideTemplate: string

    Returns ICarousel

Generated using TypeDoc