pub trait Widget {
// Required methods
fn render(&self) -> Paragraph<'_>;
fn handle_input(&mut self, key: KeyEvent) -> Option<String>;
}Expand description
Core widget trait for rendering
pub trait Widget {
// Required methods
fn render(&self) -> Paragraph<'_>;
fn handle_input(&mut self, key: KeyEvent) -> Option<String>;
}Core widget trait for rendering