Challenge #1: Modify the “Delete” Toast
Follow the instructions to modify the delete toast in this challenge.
We'll cover the following
Problem statement
The toast notification you added to indicate that a student was deleted from the roster positions itself at the top of the screen, stays for 3000 ms (3 seconds), and then vanishes. It cannot be manually dismissed by the user. And sometimes, it can be a little hard to see in its default color and position. Your challenge is to fix that.
-
Change the duration of the toast to 5 seconds.
-
Add a close button so the user can close the toast sooner. Toast buttons are configured the same way that Action Sheet buttons are. Hint: Use a role rather than a handler.
-
Move the toast to the bottom or middle of the screen using its position attribute.
-
Change its color.
After implementing the above-mentioned features on the toast, it would look like this:
Get hands-on with 1400+ tech skills courses.