@@ -181,7 +181,7 @@ export class ToastItem implements AfterViewInit, OnDestroy {
this.initTimeout();
}
- onCloseIconClick(event: Event) {
+ onCloseIconClick = (event: Event) => {
this.clearTimeout();
this.onClose.emit({
diff --git a/src/app/showcase/doc/toast/headlessdoc.ts b/src/app/showcase/doc/toast/headlessdoc.ts
index ae76e129d9d..3e514df3396 100644
--- a/src/app/showcase/doc/toast/headlessdoc.ts
+++ b/src/app/showcase/doc/toast/headlessdoc.ts
@@ -9,8 +9,8 @@ import { Code } from '../../domain/code';
Headless mode allows you to customize the entire user interface instead of the default elements.
-
-
+
+
@@ -21,8 +21,8 @@ import { Code } from '../../domain/code';
@@ -67,19 +67,13 @@ export class HeadlessDoc {
}
}
- onConfirm() {
- this.messageService.clear('confirm');
- this.visible = false;
- }
-
- onReject() {
- this.messageService.clear('confirm');
+ onClose() {
this.visible = false;
}
code: Code = {
- basic: `
-
+ basic: `
+
@@ -90,8 +84,8 @@ export class HeadlessDoc {
@@ -99,8 +93,8 @@ export class HeadlessDoc {