Content-Length: 877 | pFad | http://github.com/postgresml/postgresml/pull/1119.patch

thub.com From 828020f4f1a20f35d5897d331d6bb67627b5521f Mon Sep 17 00:00:00 2001 From: Dan <39170265+chillenberger@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:17:06 -0600 Subject: [PATCH] add ability to set Select component value --- pgml-dashboard/src/components/inputs/select/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pgml-dashboard/src/components/inputs/select/mod.rs b/pgml-dashboard/src/components/inputs/select/mod.rs index 5bfbe3dc1..9e6d33c1e 100644 --- a/pgml-dashboard/src/components/inputs/select/mod.rs +++ b/pgml-dashboard/src/components/inputs/select/mod.rs @@ -57,6 +57,11 @@ impl Select { self } + pub fn value(mut self, value: &str) -> Self { + self.value = value.to_owned(); + self + } + pub fn name(mut self, name: &str) -> Self { self.name = name.to_owned(); self








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/pull/1119.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy