You have probably noticed that in the current app you can only add new expenses. That means that the database and the list of expenses will continue to grow endlessly.
In this part, we will add a cancel and delete button which allows the user to either cancel a change that has not been committed or delete all the expenses of a person.
Similar to how the "Add new expense" button was implemented, the process to add this functionality requires three steps:
1. Add trigger properties
2. Add elements to increment the trigger properties
3. Add event handlers
Adding Trigger Properties
We start by adding our needed trigger properties for our future buttons to the PersonJson.json.