Home Reference Source
public class | source

ImageCardComponent

Extends:

potassium-components/src/molecules/CardComponent~CardComponent → ImageCardComponent

ImageCardComponent is a CardComponent that shows a single image and metadata. It shows the image, an optional title, and an optional caption.

Constructor Summary

Public Constructor
public

constructor(options: Object)

Public Constructors

public constructor(options: Object) source

Params:

NameTypeAttributeDescription
options Object
  • optional
options.imageField string
  • optional

the field name in the DataObject that holds the URL to an image

options.titleField string
  • optional

the field name in the DataObject that holds the title of the image

options.captionField string
  • optional

the field name in the dataObject that holds the caption