Application prototype #14
@ -50,9 +50,10 @@ pub fn App() -> View {
|
|||||||
list=elements_sorted,
|
list=elements_sorted,
|
||||||
view=|elt| {
|
view=|elt| {
|
||||||
let label = elt.label.clone();
|
let label = elt.label.clone();
|
||||||
let rep_components = elt.rep.iter().map(
|
let rep_components = elt.rep.iter().map(|u| {
|
||||||
|u| View::from(div().children(u.to_string().replace("-", "\u{2212}")))
|
let u_coord = u.to_string().replace("-", "\u{2212}");
|
||||||
).collect::<Vec<_>>();
|
View::from(div().children(u_coord))
|
||||||
|
}).collect::<Vec<_>>();
|
||||||
view! {
|
view! {
|
||||||
li {
|
li {
|
||||||
div(class="elt-label") { (label) }
|
div(class="elt-label") { (label) }
|
||||||
|
Loading…
Reference in New Issue
Block a user