File

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

Description

This interface represents the information related to an image.

Index

Properties

Properties

altTag
altTag: string
Type : string
Optional
url
url: 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 ""