File

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

Description

This interface represents the configuration of a MSCCategoryItemComponent.

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: string[]
Type : string[]
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, 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;
}

results matching ""

    No results matching ""