@serenity-is/corelib / Toastr

Class: Toastr

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Toastr(options?): Toastr

Parameters

Name Type
options? ToastrOptions

Returns

Toastr

Defined in

src/base/toastr2.ts:87

Properties

options

options: ToastrOptions

Defined in

src/base/toastr2.ts:85

Methods

clear

clear(options?): void

Parameters

Name Type
options? ToastContainerOptions

Returns

void

Defined in

src/base/toastr2.ts:194


error

error(message?, title?, opt?): HTMLElement

Parameters

Name Type
message? string
title? string
opt? ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:111


getContainer

getContainer(options?, create?): HTMLElement

Parameters

Name Type Default value
options? ToastContainerOptions undefined
create boolean false

Returns

HTMLElement

Defined in

src/base/toastr2.ts:91


info

info(message?, title?, opt?): HTMLElement

Parameters

Name Type
message? string
title? string
opt? ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:150


publish

publish(args): void

Parameters

Name Type
args Toastr

Returns

void

Defined in

src/base/toastr2.ts:167


removeToast

removeToast(toastElement, options?): void

Parameters

Name Type
toastElement HTMLElement
options? ToastContainerOptions

Returns

void

Defined in

src/base/toastr2.ts:183


subscribe

subscribe(callback): void

Parameters

Name Type
callback (response: Toastr) => void

Returns

void

Defined in

src/base/toastr2.ts:163


success

success(message?, title?, opt?): HTMLElement

Parameters

Name Type
message? string
title? string
opt? ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:137


warning

warning(message?, title?, opt?): HTMLElement

Parameters

Name Type
message? string
title? string
opt? ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:124