Spender es una webapp para registro y proyección de gastos de proyectos desarrollada con:
- ECMAScript 6
- HTML5
- CSS3
- BOOTSTRAP
Con esta función asignamos un nombre y presupuesto a un proyecto y confirmamos que aparezca en la interfaz.
Primero, valida si los campos del formulario no están vacíos.
y espera un objeto de la función readFromData y lo pasa como argumento a la siguiente función insertNewRecord para imprimir sus propiedades en pantalla.
resetForm es una función para limpiar los campos de los formularios y estén disponibles para otra escritura.
onEdit y updateRecord son las funciones invocadas para editar los campos del fomurario, sobreescriben los datos ya existentes (en este caso cambian el nombre del proyecto).
onDelete es la función invocada para eliminar los datos ingresados