♻️ (pagetop): Deshabilita menús con with_disabled()

Cambia `link_disabled()`, `link_blank_disabled()` y `button_disabled()`
de `nav::Item` y `dropdown::Item` por `with_disabled(bool)`, como en
Button.
This commit is contained in:
Manuel Cillero 2026-11-23 02:01:06 +01:00
parent 5d6852382a
commit f1fd34f974
12 changed files with 123 additions and 93 deletions

View file

@ -38,10 +38,7 @@ impl Extension for NavbarDemo {
)),
))
.with_item(nav::Item::link(Lc::t("navbar_active", &LOC), "/active").with_active(true))
.with_item(nav::Item::link_disabled(
Lc::t("navbar_disabled", &LOC),
"#",
));
.with_item(nav::Item::link(Lc::t("navbar_disabled", &LOC), "#").with_disabled(true));
let navbar = Navbar::brand_left(brand).with_item(navbar::Item::nav(main_nav));