Card

Card

A Card object as defined in the JSON schema

Constructor

new Card(props)

Instantiates a new Card

Parameters:
Name Type Description
props object

Properties to initialize the Card with

Properties
Name Type Attributes Description
header CardHeader <optional>

Sets Card#header

src string <optional>

Sets Card#media

title string <optional>

Sets Card#title

subtitle string <optional>

Sets Card#subtitle

description string <optional>

Sets Card#description

actions Array.<CardAction> <optional>

Sets Card#actions

actionLael string <optional>

Sets Card#actionLabel

Source:

Members

actionLabel :string

Label for the select option on SMS

Default Value:
  • 'Select'
Source:

actions :Array.<CardAction>

Array of card actions

Source:

description :string

Card content in main card body

Source:

CardHeader object

Source:

src :string

Link to public url for card media (image, mp4, youtube or vimeo)

Source:

subtitle :string

Card subtitle in main card body

Source:

title :string

Card title in main card body

Source:

Methods

(static) fromTag(cardTag) → {Card}

Creates a Card from a CardTag

Parameters:
Name Type Description
cardTag CardTag
Source: