Blocks
MosaicBlock
MosaicBlock
MosaicBlock
MosaicBlock
Object containing the following properties:
| Property | Description | Type | Default |
|---|---|---|---|
id | string | 'MosaicBlock' | |
block (*) | must be MosaicBlock | 'MosaicBlock' | |
itemsPath (*) | Path to items array. Ex: context._allEntities or data.extras.imageUrls. It should be an array of objects with a url like property or a array of urls. In this case, set the UrlPath to a . (self-referencing path) | string | |
imageUrlPath | Path to image URL for each item. Ex: image.url or . or undefined (self-referencing path) | string | '.' |
color | 'context' | 'current' | 'transparent' | 'black' | 'white' | 'gray' | 'background' | 'background-plus' | 'background-dimmed' | 'background-disabled' | 'border' | 'foreground' | 'disabled' | 'dimmed' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | ... | never | ||
colorize | boolean | ||
size | 'banner' | 'thumbnail' | ||
aspectRatio | 'video' | 'square' | ||
forceNItems | number |
(*) Required.