From 555b118716eb35b08e797aea1ecaacedcb6f5b24 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 22 Nov 2021 15:34:52 -0300 Subject: [PATCH] Demo: filtrar por lista de precios en precios --- demo/demo.ts | 6 +++++- demo/index.html | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/demo/demo.ts b/demo/demo.ts index bbc5cb8..a11f3bd 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -93,7 +93,11 @@ setupForm("#save-token", async () => { }); setupForm("#productos", () => getProductos(HOST, token(), {})); setupForm("#publicaciones", () => getPublications(HOST, token(), {})); -setupForm("#price", () => getPrices(HOST, token(), {})); +setupForm("#price", (event) => + getPrices(HOST, token(), { + filter: (event.target! as any).filter.value, + }) +); setupForm("#price-by-customer", (event) => getPricesByCustomer(HOST, token(), { filter: (event.target! as any).filter.value, diff --git a/demo/index.html b/demo/index.html index a427c55..111431f 100644 --- a/demo/index.html +++ b/demo/index.html @@ -56,6 +56,7 @@
+