UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

19 lines (18 loc) 927 B
import { CmsBannerComponent, Image, ImageGroup } from '@spartacus/core'; import { Observable } from 'rxjs'; import { CmsComponentData } from '../../../cms-structure/page/model/cms-component-data'; import * as i0 from "@angular/core"; export declare class BannerComponent { protected component: CmsComponentData<CmsBannerComponent>; styleClasses: string | undefined; data$: Observable<CmsBannerComponent>; constructor(component: CmsComponentData<CmsBannerComponent>); /** * Returns `_blank` to force opening the link in a new window whenever the * `data.external` flag is set to true. */ getTarget(data: CmsBannerComponent): string | null; getImage(data: CmsBannerComponent): Image | ImageGroup | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<BannerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<BannerComponent, "cx-banner", never, {}, {}, never, never>; }