• Accordion

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

    // Create the accordion
    let el = document.querySelector("#accordion");
    let accordion = Components.Accordion({
    autoCollapse: true,
    el: el,
    id: "demoAccordion",
    items: [
    {
    header: "Item 1",
    content: "This is the content for item 1.",
    showFl: true
    },
    {
    header: "Item 2",
    content: "This is the content for item 2."
    },
    {
    header: "Item 3",
    content: "This is the content for item 3."
    }
    ]
    });

    Parameters

    • props: IAccordionProps<HTMLElement>
    • Optional template: string
    • Optional itemTemplate: string

    Returns IAccordion

Generated using TypeDoc