♻️ (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:
parent
5d6852382a
commit
f1fd34f974
12 changed files with 123 additions and 93 deletions
|
|
@ -46,19 +46,18 @@ impl Extension for ThemeShowcase {
|
|||
Lc::t("showcase_menu_messages", &LOC),
|
||||
"#",
|
||||
))
|
||||
.with_item(dropdown::Item::link_disabled(
|
||||
Lc::t("showcase_menu_disabled", &LOC),
|
||||
"#",
|
||||
)),
|
||||
.with_item(
|
||||
dropdown::Item::link(Lc::t("showcase_menu_disabled", &LOC), "#")
|
||||
.with_disabled(true),
|
||||
),
|
||||
))
|
||||
.with_item(nav::Item::link_blank(
|
||||
Lc::t("showcase_menu_docs", &LOC),
|
||||
"https://docs.rs/pagetop",
|
||||
))
|
||||
.with_item(nav::Item::link_disabled(
|
||||
Lc::t("showcase_menu_disabled", &LOC),
|
||||
"#",
|
||||
));
|
||||
.with_item(
|
||||
nav::Item::link(Lc::t("showcase_menu_disabled", &LOC), "#").with_disabled(true),
|
||||
);
|
||||
|
||||
// Menú de la cuenta al final de la barra y, con Bootsier, el selector de modo de color
|
||||
// (claro, oscuro o automático).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue