// Create the collapse letel = document.querySelector("#collapse"); letcollapse = Components.Collapse({ el:el, id:"demoCollapse", content:"This is the content to be collapsed.", options: { toggle:true } });
// Create the button to toggle the collapse letbtn = Components.Button({ el:document.querySelector("#btnCollapse"), toggleObj:collapse, text:"Collapse Demo" });
Collapse