import { Components } from "gd-sprest-bs";// Create the buttonGrouplet el = document.querySelector("#cbGroup");let cbGroup = Components.CheckboxGroup({ el: el, multi: false, type: Components.CheckboxGroupTypes.Switch, items: [ { label: "Option 1" }, { label: "Option 2", isSelected: true }, { label: "Option 3" } ]}); Copy
import { Components } from "gd-sprest-bs";// Create the buttonGrouplet el = document.querySelector("#cbGroup");let cbGroup = Components.CheckboxGroup({ el: el, multi: false, type: Components.CheckboxGroupTypes.Switch, items: [ { label: "Option 1" }, { label: "Option 2", isSelected: true }, { label: "Option 3" } ]});
Optional
Generated using TypeDoc
Checkbox Group