Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/card.d"

Index

Variables

Const Card

Card: (props: ICardProps) => ICard
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
                }
            ]
        }
    ]
});

Type declaration

Generated using TypeDoc