TextCard Class Reference

TextCard

This is a concrete card class that can display a title and body text.

The title of the card to be displayed in the card’s view.

Declaration

The color with which the title will be displayed.

Declaration

The font with which the title will be displayed.

Declaration

The body of the card to be displayed in the card’s view.

Declaration

The color with which the body will be displayed.

Declaration

The font with which the body will be displayed.

Declaration

The background color of the card view.

Declaration

Creates a new text card.

Declaration

Parameters

<br> cardCTA<br> The call to action object to be displayed when the card is “active”.
<br> title<br> The title of the card.
<br> body<br> The body text of the card.

Return Value

Returns an instance of a card with the title, bodyText, and cardCTA.