import { Components } from "gd-sprest-bs";// Create the accordionlet 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." } ]}); Copy
import { Components } from "gd-sprest-bs";// Create the accordionlet 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." } ]});
Optional
Generated using TypeDoc
Accordion