mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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
|
// TODO: remove me
|
||||||
impl Ver {
|
impl Ver {
|
||||||
fn modal(&self, env: &mut CommonEnv) {
|
fn modal(&self, env: &mut CommonEnv) {
|
||||||
log::info!("modal data: {:#?}", env.modals.get_text_multi(
|
log::info!("modal data: {:#?}", env.modals.alert_builder("Get Text")
|
||||||
"Get Text",
|
.field(Some("first".to_string()), None)
|
||||||
None,
|
.field(Some("second".to_string()), None)
|
||||||
None,
|
.field(None, None)
|
||||||
4,
|
.field(Some("fourth".to_string()), None)
|
||||||
Some(vec![
|
.build()
|
||||||
Some(std::string::String::from("first")),
|
);
|
||||||
Some(std::string::String::from("second")),
|
|
||||||
None,
|
|
||||||
Some(std::string::String::from("fourth")),
|
|
||||||
])))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue