File

src/components/multi-slot-container/msc-items/msc-content-item/msc-content-item.model.ts

Description

This interface represents the meta information about an image stored in the CaaS.

Index

Properties

Properties

fsType
fsType:
resolutions
resolutions: CaasMediaDocument
Type : CaasMediaDocument
Optional
resolutionsMetaData
resolutionsMetaData: PictureMetaData
Type : PictureMetaData
Optional
url
url: string
Type : string
import { CmsComponent } from '@spartacus/core';
import { CaasMediaDocument, LinkData, PictureMetaData } from '../../../../converter/teaser/fs-teaser.model';

/**
 * This interface represents the configuration of a {@link MSCContentItemComponent}.
 *
 * @export
 * @interface MSCContentItemComponentData
 */
export interface MSCContentItemComponentData extends CmsComponent {
  previewId?: string;
  childPreviewId?: string;
  image?: ImageMedia;
  altTag?: string;
  headline?: string;
  subline?: string;
  text?: string;
  link?: LinkData;
  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;
}

results matching ""

    No results matching ""