• Card

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

    // Create the card
    let 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."); }
    }
    ]
    }
    ]
    });

    Parameters

    • props: ICardProps<Element>
    • Optional template: string

    Returns ICard

Generated using TypeDoc