ImageBlock

data class ImageBlock(val rowSpan: Int, val columnSpan: Int, val origin: Pair<Int, Int>? = null, val imageUrl: String, val products: List<ClickableProduct>, val animations: List<AnimationRegion>) : Publication.Page.Cell.Block(source)

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, origin: Pair<Int, Int>? = null, imageUrl: String, products: List<ClickableProduct>, animations: List<AnimationRegion>)

Properties

Link copied to clipboard

The list of AnimationRegions that are in this ImageBlock

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
open override val origin: Pair<Int, Int>?
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.