Content:
- Properties
- Methods

They are surfaces in material design that display content and actions on a single topic.

crd = ui.addCard( parent, content, options, width, height ) → ui object: Card
{
headerTitle: string, // card header title
headerSubtitle: string, // card header subtitle or subheader
headerAvatar: string, // card header avatar. can be a single character or a path to an image
headerAction: string, // card header action. A material icon font
media: string, // path to an image
bodyTitle: string, // title of the card content
bodyText: string, // long description of the card
actions: array, // list of icon buttons. can be a list of material-icon fonts if actionType is an "icon"
actionType: string, // type of action. can be a "button" or "icon"
onAction: function, // callback when card actions are clicked. refer to setOnAction method for arguments
onHeaderAction: function // callback when header action is clicked. refer to setOnHeaderAction method for arguments

}

These are the methods for Card component.

Example - Basic Card click to expand contents 

Example - Card with media click to expand contents 

Example - Card with header click to expand contents 

Example - Card with additional controls click to expand contents 

Properties

The following properties are available on the Card object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
actionsList
actionTypeObject
backColorString
backImageString
bodyTextString
bodyTitleString
borderNumber
borderColorString
borderStyleString
cornerRadiusNumber
disabledBoolean
elObject
elevationNumber
elStyleString
fontFileString
headerActionString
headerAvatarString
headerSubtitleString
headerTitleString
heightNumber
isVisibleBoolean
layoutObject
leftNumber
marginsList
mediaString
opacityNumber
optionsString
paddingList
parentObject
positionObject
rotationNumber
textColorString
textSizeNumber
topNumber
typeString
visibilityString
widthNumber

Methods

The following methods are available on the Card object:

getPosition( options ) → Object
gone()
hide()
setScale( x, y )
show()