• Collapse

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

    // Create the collapse
    let el = document.querySelector("#collapse");
    let collapse = Components.Collapse({
    el: el,
    id: "demoCollapse",
    content: "This is the content to be collapsed.",
    options: { toggle: true }
    });

    // Create the button to toggle the collapse
    let btn = Components.Button({
    el: document.querySelector("#btnCollapse"),
    toggleObj: collapse,
    text: "Collapse Demo"
    });

    Parameters

    Returns ICollapse

Generated using TypeDoc