src/components/multi-slot-container/msc-items/msc-category-item/msc-category-item.model.ts
This interface represents the configuration of a MSCCategoryItemComponent.
CmsComponent
Properties |
|
altTag |
altTag:
|
Type : string
|
Optional |
buttonText |
buttonText:
|
Type : string
|
Optional |
childPreviewId |
childPreviewId:
|
Type : string
|
Optional |
headline |
headline:
|
Type : string
|
Optional |
image |
image:
|
Type : ImageMedia
|
Optional |
link |
link:
|
Type : string[]
|
Optional |
previewId |
previewId:
|
Type : string
|
Optional |
subline |
subline:
|
Type : string
|
Optional |
text |
text:
|
Type : string
|
Optional |
import { CmsComponent } from '@spartacus/core';
import { CaasMediaDocument, PictureMetaData } from '../../../../converter/teaser/fs-teaser.model';
/**
* This interface represents the configuration of a {@link MSCCategoryItemComponent}.
*
* @export
* @interface MSCCategoryItemComponentData
*/
export interface MSCCategoryItemComponentData extends CmsComponent {
previewId?: string;
childPreviewId?: string;
image?: ImageMedia;
altTag?: string;
headline?: string;
subline?: string;
text?: string;
link?: string[];
buttonText?: string;
}
/**
* This interface represents the information related to an image.
*
* @export
* @interface ImageMedia
*/
export interface ImageMedia {
url?: string;
altTag?: string;
}
/**
* This interface represents the meta information about an image stored in the CaaS.
*
* @export
* @interface CmsImageMedia
*/
export interface CmsImageMedia {
fsType: 'Media';
url: string;
resolutions?: CaasMediaDocument;
resolutionsMetaData?: PictureMetaData;
}