ImageBlock

data class ImageBlock(val rowSpan: Int, val columnSpan: Int, val imageUrl: String, val products: List<ClickableProduct>) : Publication.Page.Cell.Block

The primary image-based content of a Publication.Page. Multiple ImageBlocks are laid out in an adaptive grid, each of which contain an image and possibly a list of products.

Constructors

Link copied to clipboard
constructor(rowSpan: Int, columnSpan: Int, imageUrl: String, products: List<ClickableProduct>)

Properties

Link copied to clipboard
open override val columnSpan: Int

The number of columns that this ImageBlock spans.

Link copied to clipboard

The URL for this ImageBlock's image.

Link copied to clipboard

The list of ClickableProducts that are in this ImageBlock.

Link copied to clipboard
open override val rowSpan: Int

The number of rows that this ImageBlock spans.

Link copied to clipboard

The BlockType of the block.