Methods
# async inner getProductsFromDb()
Trae TODOS los productos de la BD
# async inner handleDelete(id)
Elimina el registro de la Base de datos âš
Parameters:
Name | Type | Description |
---|---|---|
id |
string |
# async inner handleEdit()
Permite editar un producto
# async inner handleIsActiveClick(id, active)
Cambia el estado del producto de activo a inactivo
Parameters:
Name | Type | Description |
---|---|---|
id |
string | |
active |
boolean |
# inner handleNewProduct()
Permite crear un producto
# inner handleStatisticsProducts()
retorna estadisticas