Working with dialogs
The Dialog component is one of the out-of-the-box components that is used to open a pop-up window. A dialog can be used to provide information, take consent from a user before performing some action, and so on.
In this section, we'll execute a use case wherein we'll create a table with delete functionality. When a user tries to delete an employee record, a dialog box will be opened to take consent. If they agree to delete the user, only then will that user be deleted.
For this use case, we'll use the main-start page of the chapter8 web application.
The following are the steps to complete the use case:
- Use the dialog component.
- Open and close the dialog on an action.
- Implement the logic to delete a user.
In the next section, we'll look at the preceding steps in detail.
Using the dialog component
In this section, we'll use the dialog component, which will be opened when a user tries to delete a user....