import { Components } from "gd-sprest-bs";// Create the cardlet el = document.querySelector("#card");let card = Components.Card({ el: el, body: [ { title: "Card Title", text: "This is the card contents.", actions: [ { text: "Card Action", buttonType: $REST.Components.ButtonTypes.Primary, onClick: function(action, card) { alert(card.title + " was clicked."); } } ] } ]}); Copy
import { Components } from "gd-sprest-bs";// Create the cardlet el = document.querySelector("#card");let card = Components.Card({ el: el, body: [ { title: "Card Title", text: "This is the card contents.", actions: [ { text: "Card Action", buttonType: $REST.Components.ButtonTypes.Primary, onClick: function(action, card) { alert(card.title + " was clicked."); } } ] } ]});
Optional
Generated using TypeDoc
Card