mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
shellchat: update demo modals command to new interface
This commit is contained in:
parent
89c768625d
commit
8375fdf801
1 changed files with 7 additions and 11 deletions
|
|
@ -8,17 +8,13 @@ pub struct Ver {
|
|||
// TODO: remove me
|
||||
impl Ver {
|
||||
fn modal(&self, env: &mut CommonEnv) {
|
||||
log::info!("modal data: {:#?}", env.modals.get_text_multi(
|
||||
"Get Text",
|
||||
None,
|
||||
None,
|
||||
4,
|
||||
Some(vec![
|
||||
Some(std::string::String::from("first")),
|
||||
Some(std::string::String::from("second")),
|
||||
None,
|
||||
Some(std::string::String::from("fourth")),
|
||||
])))
|
||||
log::info!("modal data: {:#?}", env.modals.alert_builder("Get Text")
|
||||
.field(Some("first".to_string()), None)
|
||||
.field(Some("second".to_string()), None)
|
||||
.field(None, None)
|
||||
.field(Some("fourth".to_string()), None)
|
||||
.build()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue