File

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

Description

This interface represents the configuration of a MSCContentItemComponent.

Extends

CmsComponent

Index

Properties

Properties

altTag
altTag: string
Type : string
Optional
buttonText
buttonText: string
Type : string
Optional
childPreviewId
childPreviewId: string
Type : string
Optional
headline
headline: string
Type : string
Optional
image
image: ImageMedia
Type : ImageMedia
Optional
link
link: LinkData
Type : LinkData
Optional
previewId
previewId: string
Type : string
Optional
subline
subline: string
Type : string
Optional
text
text: string
Type : string
Optional
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 ""