Skip to content

Latest commit

 

History

History
253 lines (127 loc) · 3.69 KB

Toastr.md

File metadata and controls

253 lines (127 loc) · 3.69 KB

@serenity-is/corelib / Toastr

Class: Toastr

Constructors

new Toastr()

new Toastr(options?): Toastr

Parameters

options?

ToastrOptions

Returns

Toastr

Defined in

src/base/toastr2.ts:95

Properties

options

options: ToastrOptions

Defined in

src/base/toastr2.ts:93

Methods

clear()

clear(options?): void

Parameters

options?

ToastContainerOptions

Returns

void

Defined in

src/base/toastr2.ts:204


error()

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

Parameters

message?

string

title?

string

opt?

ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:121


getContainer()

getContainer(options?, create?): HTMLElement

Parameters

options?

ToastContainerOptions

create?

boolean = false

Returns

HTMLElement

Defined in

src/base/toastr2.ts:101


info()

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

Parameters

message?

string

title?

string

opt?

ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:160


publish()

publish(args): void

Parameters

args

Toastr

Returns

void

Defined in

src/base/toastr2.ts:177


removeToast()

removeToast(toastElement, options?): void

Parameters

toastElement

HTMLElement

options?

ToastContainerOptions

Returns

void

Defined in

src/base/toastr2.ts:193


subscribe()

subscribe(callback): void

Parameters

callback

(response) => void

Returns

void

Defined in

src/base/toastr2.ts:173


success()

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

Parameters

message?

string

title?

string

opt?

ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:147


warning()

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

Parameters

message?

string

title?

string

opt?

ToastrOptions

Returns

HTMLElement

Defined in

src/base/toastr2.ts:134