Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Restructure issue page widgets
Erik Kundt committed 2 years ago
commit cb2490745e594d8125b70da15b0b3ee5c3dadc26
parent 0ed7bb61e43675ad4bf3f6e7c9279632f035cf21
2 files changed +29 -0
modified src/ui/widget/common.rs
@@ -1,5 +1,6 @@
pub mod container;
pub mod context;
+
pub mod form;
pub mod label;
pub mod list;

added src/ui/widget/common/form.rs
@@ -0,0 +1,28 @@
+
use std::collections::HashMap;
+

+
use tuirealm::command::{CmdResult, Cmd};
+
use tuirealm::tui::layout::Rect;
+
use tuirealm::{MockComponent, Props, Frame, State};
+

+
use crate::ui::widget::WidgetComponent;
+

+
struct Form {
+
    inputs: HashMap<String, Box<dyn MockComponent>>,
+
    
+
}
+

+
impl Form {
+

+
}
+

+
impl WidgetComponent for Form {
+
    fn view(&mut self, _properties: &Props, _frame: &mut Frame, _area: Rect) {}
+

+
    fn state(&self) -> State {
+
        State::None
+
    }
+

+
    fn perform(&mut self, _properties: &Props, _cmd: Cmd) -> CmdResult {
+
        CmdResult::None
+
    }
+
}

\ No newline at end of file