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: projects/igniteui-angular/src/lib/toast/README.md
+21-26Lines changed: 21 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
# igx-toast
2
2
3
-
**igx-toast** IgxToast provides information and warning messages. They could not be dismissed, are non-interactive and can appear on top, middle and the bottom of the screen.
4
-
A walkthrough of how to get started can be found [here](https://www.infragistics.com/products/ignite-ui-angular/angular/components/toast.html)
3
+
The Toast component shows application messages in a stylized pop-up box positioned inside the global overlay outlet(default). Toasts can't be dismissed, they are non-interactive and can appear on top, middle, and the bottom of the screen. A walkthrough on how to get started can be found [here](https://www.infragistics.com/products/ignite-ui-angular/angular/components/toast.html)
5
4
6
5
# Usage
7
6
@@ -11,53 +10,49 @@ A walkthrough of how to get started can be found [here](https://www.infragistics
11
10
<button(click)="toast.show()">Show toast</button>
12
11
<button(click)="toast.hide()">Hide toast</button>
13
12
14
-
<igx-toast#toast
15
-
message="Something happened!">
16
-
</igx-toast>
13
+
<igx-toast#toast>Well, hi there!</igx-toast>
17
14
```
18
-
You can set the id of the component by `id="myToast"` or will be automatically generated;
19
15
20
-
You can be more descriptive and set message `message="Something happened!"`.
16
+
You can set the id of the component by setting the attribute `id` on the component (e.g. `id="myToast"`), or it will be automatically generated for you if you don't provide anything;
17
+
18
+
The toast can be shown by using the `show()` method.
21
19
22
-
You can show the toast by using `toast.show()` method.
20
+
You can hide the toast by using the `hide()` method.
23
21
24
-
You can show hide toast by using `toast.hide()` method.
22
+
## Toast Position
23
+
You can set the `positon` property to `top`, `middle`, or `bottom`, which will position the toast near the top, middle, or bottom of the document*.
25
24
26
-
## Toast positioned on top
25
+
*By default the toast renders inside a global overlay outlet. You can specify a different overlay outlet by setting the `outlet` property on the toast;
0 commit comments