From 7282045c98fa659e483bafbec75cc10ba525e957 Mon Sep 17 00:00:00 2001 From: doryan Date: Wed, 14 Aug 2024 18:57:14 +0400 Subject: [PATCH] feat(method): add get_component() method This method let get Box whose children are a label and a TextView/Entry --- src/view/components/input.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/view/components/input.rs b/src/view/components/input.rs index 94910ac..65cf843 100644 --- a/src/view/components/input.rs +++ b/src/view/components/input.rs @@ -71,6 +71,8 @@ impl Product for Input { } impl Input { + pub fn get_component(&self) -> &Box { + &self.component } pub fn get_input(&self) -> &I {