feat(method): add get_component() method

This method let get Box whose children are a label and a TextView/Entry
This commit is contained in:
doryan 2024-08-14 18:57:14 +04:00
parent f57aed1fb8
commit 7282045c98

View File

@ -71,6 +71,8 @@ impl<I> Product<InputBuilder, Box> for Input<I> {
} }
impl<I> Input<I> { impl<I> Input<I> {
pub fn get_component(&self) -> &Box {
&self.component
} }
pub fn get_input(&self) -> &I { pub fn get_input(&self) -> &I {