@serenity-is/corelib / Toastr
Class: Toastr
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Toastr(options?): Toastr
Parameters
| Name | Type |
|---|---|
options? |
ToastrOptions |
Returns
Defined in
Properties
options
• options: ToastrOptions
Defined in
Methods
clear
▸ clear(options?): void
Parameters
| Name | Type |
|---|---|
options? |
ToastContainerOptions |
Returns
void
Defined in
error
▸ error(message?, title?, opt?): HTMLElement
Parameters
| Name | Type |
|---|---|
message? |
string |
title? |
string |
opt? |
ToastrOptions |
Returns
HTMLElement
Defined in
getContainer
▸ getContainer(options?, create?): HTMLElement
Parameters
| Name | Type | Default value |
|---|---|---|
options? |
ToastContainerOptions |
undefined |
create |
boolean |
false |
Returns
HTMLElement
Defined in
info
▸ info(message?, title?, opt?): HTMLElement
Parameters
| Name | Type |
|---|---|
message? |
string |
title? |
string |
opt? |
ToastrOptions |
Returns
HTMLElement
Defined in
publish
▸ publish(args): void
Parameters
| Name | Type |
|---|---|
args |
Toastr |
Returns
void
Defined in
removeToast
▸ removeToast(toastElement, options?): void
Parameters
| Name | Type |
|---|---|
toastElement |
HTMLElement |
options? |
ToastContainerOptions |
Returns
void
Defined in
subscribe
▸ subscribe(callback): void
Parameters
| Name | Type |
|---|---|
callback |
(response: Toastr) => void |
Returns
void
Defined in
success
▸ success(message?, title?, opt?): HTMLElement
Parameters
| Name | Type |
|---|---|
message? |
string |
title? |
string |
opt? |
ToastrOptions |
Returns
HTMLElement
Defined in
warning
▸ warning(message?, title?, opt?): HTMLElement
Parameters
| Name | Type |
|---|---|
message? |
string |
title? |
string |
opt? |
ToastrOptions |
Returns
HTMLElement