src/components/multi-slot-container/msc-items/msc-product-item/msc-product-item.model.ts
This interface represents the configuration of a MSCProductItemComponent.
CmsComponent
Properties |
|
buttonText |
buttonText:
|
Type : string
|
Optional |
childPreviewId |
childPreviewId:
|
Type : string
|
Optional |
headline |
headline:
|
Type : string
|
Optional |
image |
image:
|
Type : ImageMedia
|
Optional |
previewId |
previewId:
|
Type : string
|
Optional |
product |
product:
|
Type : Observable<Product>
|
Optional |
subline |
subline:
|
Type : string
|
Optional |
text |
text:
|
Type : string
|
Optional |
import { CmsComponent, Product } from '@spartacus/core';
import { Observable } from 'rxjs';
import { ImageMedia } from '../msc-content-item/msc-content-item.model';
/**
* This interface represents the configuration of a {@link MSCProductItemComponent}.
*
* @export
* @interface MSCProductItemComponentData
*/
export interface MSCProductItemComponentData extends CmsComponent {
previewId?: string;
childPreviewId?: string;
image?: ImageMedia;
product?: Observable<Product>;
headline?: string;
subline?: string;
text?: string;
buttonText?: string;
}