Skip to content

Latest commit

 

History

History
214 lines (140 loc) · 5.53 KB

ToastEvokeService.md

File metadata and controls

214 lines (140 loc) · 5.53 KB

Class: ToastEvokeService

Global styles set in app.module.ts will affect the instance. See Global Config setup.

// Inject this service as Dependency Injection in a constructor like example below,
// and evoke the popup simply calling one of its methods.

 constructor(private toastEvokeService: ToastEvokeService) {}

// evoke it anywhere, no need to unsubscribe, it has an auto unsubscribe.
// Type SUCCESS
this.toastEvokeService.success('I am title!', 'I am a message!').subscribe();
// Type INFO
this.toastEvokeService.info('I am title!', 'I am a message!').subscribe();
// Type WARNING
this.toastEvokeService.warning('I am title!', 'I am a message!').subscribe();
// Type ERROR
this.toastEvokeService.danger('I am title!', 'I am a message!').subscribe();

Table of contents

Constructors

Methods

Constructors

constructor

new ToastEvokeService()

Methods

customFive

customFive(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


customFour

customFour(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


customOne

customOne(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


customThree

customThree(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


customTwo

customTwo(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


danger

danger(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


info

info(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


success

success(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>


warning

warning(title, message, confirmLabel?, declineLabel?): Observable<IToastNotificationPublicResponse>

Parameters

Name Type
title string
message string
confirmLabel? string
declineLabel? string

Returns

Observable<IToastNotificationPublicResponse>