ibeal / KitchenDB

A personal project to create something that can track inventory and recipes to suggest recipes to make determined by inventory
2 stars 0 forks source link

recipe field manipulation #11

Closed ibeal closed 3 years ago

ibeal commented 3 years ago

I need three functions that interact with the recipe fields, each associated with a button. clearFields: this would delete all the data in the recipe fields, and would be associated with a clear button saveFields: this would get all the data in the fields, create a recipe object and pass it to the db (granted that it doesn't already exist), and is associated with the add button fillFields: this would clear all the fields, then fill them with the data from a given recipe, and would be associated with each button in the recipe table