UNPKG

@netcreaties/ngx-smart-banner

Version:

Angular service for the imlementation of a smart banner to notify your users about your available app.

49 lines (48 loc) 1.57 kB
import { Platform } from '@angular/cdk/platform'; import { ComponentRef, EventEmitter } from '@angular/core'; import { NgxSmartBannerSettings } from './settings.interface'; import { CookieService } from './utils/cookie-service'; import * as i0 from "@angular/core"; export declare class NgxSmartBannerComponent { private readonly platform; private readonly cookieService; settings: NgxSmartBannerSettings; componentRef: ComponentRef<NgxSmartBannerComponent>; modifier: string; onClose: EventEmitter<void>; constructor(platform: Platform, cookieService: CookieService); /** * Gets icon */ get icon(): string | undefined | null; /** * Gets button url */ get buttonUrl(): string | undefined; /** * Gets price suffix */ get priceSuffix(): string | undefined; /** * Set cookie to reminder value and destroy component */ exit(): void; /** * Set cookie to hidden value and destroy component * * @author Roy Freij <roy@bsbip.com> */ view(): void; /** * Gets end date */ private endDate; /** * Gets review rating * * @author Harry Apperloo <harry@bsbip.com> */ get reviewAverage(): number | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmartBannerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxSmartBannerComponent, "nc-ngx-smart-banner", never, { "settings": "settings"; "componentRef": "componentRef"; }, {}, never, never>; }