Mejora disposición de propiedades de componentes
This commit is contained in:
parent
743e32b0f6
commit
88a59780c3
21 changed files with 554 additions and 453 deletions
|
|
@ -3,34 +3,34 @@ use super::l;
|
|||
|
||||
pub async fn summary() -> app::Result<Markup> {
|
||||
let top_menu = Menu::new()
|
||||
.add(MenuItem::label(l("module_name").as_str()))
|
||||
.add(MenuItem::link("Opción 2", "https://www.google.es"))
|
||||
.add(MenuItem::link_blank("Opción 3", "https://www.google.es"))
|
||||
.add(MenuItem::submenu("Submenú 1", Menu::new()
|
||||
.add(MenuItem::label("Opción 1"))
|
||||
.add(MenuItem::label("Opción 2"))
|
||||
.with_item(MenuItem::label(l("module_name").as_str()))
|
||||
.with_item(MenuItem::link("Opción 2", "https://www.google.es"))
|
||||
.with_item(MenuItem::link_blank("Opción 3", "https://www.google.es"))
|
||||
.with_item(MenuItem::submenu("Submenú 1", Menu::new()
|
||||
.with_item(MenuItem::label("Opción 1"))
|
||||
.with_item(MenuItem::label("Opción 2"))
|
||||
))
|
||||
.add(MenuItem::separator())
|
||||
.add(MenuItem::submenu("Submenú 2", Menu::new()
|
||||
.add(MenuItem::label("Opción 1"))
|
||||
.add(MenuItem::label("Opción 2"))
|
||||
.with_item(MenuItem::separator())
|
||||
.with_item(MenuItem::submenu("Submenú 2", Menu::new()
|
||||
.with_item(MenuItem::label("Opción 1"))
|
||||
.with_item(MenuItem::label("Opción 2"))
|
||||
))
|
||||
.add(MenuItem::label("Opción 4"));
|
||||
.with_item(MenuItem::label("Opción 4"));
|
||||
|
||||
let side_menu = Menu::new()
|
||||
.add(MenuItem::label("Opción 1"))
|
||||
.add(MenuItem::link("Opción 2", "https://www.google.es"))
|
||||
.add(MenuItem::link_blank("Opción 3", "https://www.google.es"))
|
||||
.add(MenuItem::submenu("Submenú 1", Menu::new()
|
||||
.add(MenuItem::label("Opción 1"))
|
||||
.add(MenuItem::label("Opción 2"))
|
||||
.with_item(MenuItem::label("Opción 1"))
|
||||
.with_item(MenuItem::link("Opción 2", "https://www.google.es"))
|
||||
.with_item(MenuItem::link_blank("Opción 3", "https://www.google.es"))
|
||||
.with_item(MenuItem::submenu("Submenú 1", Menu::new()
|
||||
.with_item(MenuItem::label("Opción 1"))
|
||||
.with_item(MenuItem::label("Opción 2"))
|
||||
))
|
||||
.add(MenuItem::separator())
|
||||
.add(MenuItem::submenu("Submenú 2", Menu::new()
|
||||
.add(MenuItem::label("Opción 1"))
|
||||
.add(MenuItem::label("Opción 2"))
|
||||
.with_item(MenuItem::separator())
|
||||
.with_item(MenuItem::submenu("Submenú 2", Menu::new()
|
||||
.with_item(MenuItem::label("Opción 1"))
|
||||
.with_item(MenuItem::label("Opción 2"))
|
||||
))
|
||||
.add(MenuItem::label("Opción 4"));
|
||||
.with_item(MenuItem::label("Opción 4"));
|
||||
|
||||
Page::new()
|
||||
|
||||
|
|
@ -41,11 +41,11 @@ pub async fn summary() -> app::Result<Markup> {
|
|||
.add_to("top-menu", top_menu)
|
||||
|
||||
.add_to("content", grid::Row::new()
|
||||
.add_column(grid::Column::new()
|
||||
.add(side_menu)
|
||||
.with_column(grid::Column::new()
|
||||
.with_component(side_menu)
|
||||
)
|
||||
.add_column(grid::Column::new()
|
||||
.add(Chunck::with(html! {
|
||||
.with_column(grid::Column::new()
|
||||
.with_component(Chunck::with(html! {
|
||||
p { "Columna 2"}
|
||||
}))
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue