Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/accordion.d"

Index

Variables

Const Accordion

Accordion: (props: IAccordionProps) => IAccordion
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: [
        {
            btnProps: { text: "Item 1" },
            content: "This is the content for item 1."
        },
        {
            btnProps: { text: "Item 2" },
            content: "This is the content for item 2."
        },
        {
            btnProps: { text: "Item 3" },
            content: "This is the content for item 3."
        }
    ]
});

Type declaration

Generated using TypeDoc