Progress bar; use render_value for input

This commit is contained in:
veeso
2021-03-07 11:32:55 +01:00
parent e21eb72705
commit 57dd06d774
3 changed files with 193 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ impl Component for Input {
Some(t) => t.clone(),
None => String::new(),
};
let p: Paragraph = Paragraph::new(self.states.get_value())
let p: Paragraph = Paragraph::new(self.states.render_value(self.props.input_type))
.style(match self.states.focus {
true => Style::default().fg(self.props.foreground),
false => Style::default(),