File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/uui-toast-notification/lib Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { UUIEvent } from '@umbraco-ui/uui-base/lib/events' ;
2
+
2
3
import { UUIToastNotificationElement } from './uui-toast-notification.element' ;
3
4
4
5
export class UUIToastNotificationEvent extends UUIEvent <
5
6
{ } ,
6
7
UUIToastNotificationElement
7
8
> {
8
9
public static readonly OPENING = 'opening' ;
10
+ public static readonly OPENED = 'opened' ;
9
11
public static readonly CLOSING = 'closing' ;
10
12
public static readonly CLOSED = 'closed' ;
11
13
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { UUIToastNotificationEvent } from './UUIToastNotificationEvent';
13
13
/**
14
14
* @element uui-toast-notification
15
15
* @fires {UUIToastNotificationEvent } opening - fires when the toast is starting to open
16
+ * @fires {UUIToastNotificationEvent } opened - fires when the toast is open after the open-animation
16
17
* @fires {UUIToastNotificationEvent } closing - fires when the toast is starting to close
17
18
* @fires {UUIToastNotificationEvent } closed - fires when the toast is closed
18
19
* @description - Component for displaying a toast notification, preferably used in toast-notification-container.
@@ -257,6 +258,10 @@ export class UUIToastNotificationElement extends LitElement {
257
258
if ( this . _pauseTimer === false ) {
258
259
this . _timer ?. start ( ) ;
259
260
}
261
+
262
+ this . dispatchEvent (
263
+ new UUIToastNotificationEvent ( UUIToastNotificationEvent . OPENED )
264
+ ) ;
260
265
}
261
266
} , 480 ) ;
262
267
} ) ;
You can’t perform that action at this time.
0 commit comments