Content:
- Methods

A material implementation of a card.

crd = MUI.CreateCard( options ) → Object

It is fully customizable to suit your likings.

options propertiesdefinitions

titleString Title text

bodyString Body text

imageString Path to the image

buttonTextString Comma separated string for button text

colorString Color string

widthNumber Fraction of the screen width

divider1Boolean Divider below the avatar

divider2Boolean Divider below the body

avatarString Path to the avatar image

avatarOnTopBoolean Is the avatar on top of the image

buttonTypeString Can be 'raised', 'raisedoutline', 'round', 'roundoutline' or 'flat'

nameString Name of the card

Example - No-image, No-Avatar click to expand contents 

Example - With-image, No-Avatar click to expand contents 

Example - With Image, With Avatar click to expand contents 

Example - Complete click to expand contents 

Methods

The following methods are available on the Card object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options ) → Number
GetLeft( options ) → Number
GetParent() → app object
GetPosition( options ) → Object: { left, top, right, bottom }
GetTop( options ) → Number
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth ) → Boolean
IsVisible() → Boolean
Show()