1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
source: crates/macros/src/view.rs
expression: "expand(r###\"<Container>\n \"## \" {title}\n {items.iter().map(|item| rsx! { <Text>\"- \" {*item}</Text> })}\n <Card title=\"nested\"><Text>\"child\"</Text></Card>\n <Row><StringSelect on:select=pick(id) options=Color/></Row>\n </Container>\"###)"
---
fn view() -> View {
{
let __view = {
#[allow(unused_braces)]
{
::composure::command::View::builder()
.reserve(1usize)
.child({
{
let _: ::composure::types::Container;
::composure::types::Container::builder()
.reserve(5usize)
.child("## ")
.child({ title })
.child({
items
.iter()
.map(|item| {
rsx! {
< Text > "- " { * item } </ Text >
}
})
})
.child({
{
#[allow(unused_imports)]
use ::composure::command::elements::*;
Card::builder()
}
.title("nested")
.children(
::composure::command::View::builder()
.reserve(1usize)
.child({
{
let _: ::composure::types::TextDisplay;
::composure::types::TextDisplay::builder()
.child("child")
.build()
}
})
.build(),
)
.build()
})
.child({
{
let _: ::composure::types::ActionRow;
::composure::types::ActionRow::builder()
.reserve(1usize)
.child({
::composure::types::StringSelect::builder()
.on_select(pick::custom_id(id))
.options::<Color>()
.build()
})
.build()
}
})
.build()
}
})
.build()
}
};
__view
}
}