import { Components } from "gd-sprest-bs";// Create the buttonGrouplet el = document.querySelector("#buttonGroup");let buttonGroup = Components.ButtonGroup({ el: el, buttonType: $REST.Components.ButtonTypes.Primary, buttons: [ { text: "Left", onClick: function() { alert("Left button was clicked."); } }, { text: "Middle", onClick: function() { alert("Middle button was clicked."); } }, { text: "Right", onClick: function() { alert("Right button was clicked."); } } ]}); Copy
import { Components } from "gd-sprest-bs";// Create the buttonGrouplet el = document.querySelector("#buttonGroup");let buttonGroup = Components.ButtonGroup({ el: el, buttonType: $REST.Components.ButtonTypes.Primary, buttons: [ { text: "Left", onClick: function() { alert("Left button was clicked."); } }, { text: "Middle", onClick: function() { alert("Middle button was clicked."); } }, { text: "Right", onClick: function() { alert("Right button was clicked."); } } ]});
Optional
Generated using TypeDoc
Button Group