import ImageCardComponent from 'potassium-components/src/molecules/ImageCardComponent.js'
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:
Name | Type | Attribute | Description |
options | Object |
|
|
options.imageField | string |
|
the field name in the DataObject that holds the URL to an image |
options.titleField | string |
|
the field name in the DataObject that holds the title of the image |
options.captionField | string |
|
the field name in the dataObject that holds the caption |