You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vaadin-notification-flow-parent/vaadin-notification-flow/src/main/java/com/vaadin/flow/component/notification/Notification.java
+74-3Lines changed: 74 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,31 @@ public Notification(String text, int duration, Position position) {
198
198
setPosition(position);
199
199
}
200
200
201
+
/**
202
+
* Creates a Notification with given text String, duration, position and
203
+
* assertive state.
204
+
* <P>
205
+
* Set to {@code 0} or a negative number to disable the notification
206
+
* auto-closing.
207
+
*
208
+
* @param text
209
+
* the text of the notification
210
+
* @param duration
211
+
* the duration in milliseconds to show the notification
212
+
* @param position
213
+
* the position of the notification. Valid enumerate values are
Copy file name to clipboardExpand all lines: vaadin-notification-flow-parent/vaadin-notification-flow/src/test/java/com/vaadin/flow/component/notification/NotificationTest.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -367,4 +367,18 @@ public void setText_notificationHasUnmodifiedText() {
Copy file name to clipboardExpand all lines: vaadin-notification-flow-parent/vaadin-notification-flow/src/test/java/com/vaadin/flow/component/notification/tests/NotificationTest.java
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,15 @@ public void stringDurAndPositionCtor() {
0 commit comments