♻️ (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
|
|
@ -42,7 +42,7 @@ pub(crate) const EXTRA_IN_NAVBAR: &str = "bootsier.nav.in_navbar";
|
|||
/// bs::dropdown::Item::link(Lc::n("Another"), "/another"),
|
||||
/// ])),
|
||||
/// ))
|
||||
/// .with_item(bs::nav::Item::link_disabled(Lc::n("Disabled"), "#"));
|
||||
/// .with_item(bs::nav::Item::link(Lc::n("Disabled"), "#").with_disabled(true));
|
||||
/// ```
|
||||
#[builder_impl]
|
||||
pub trait NavBsExt {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ const EXTRA_LAYOUT: &str = "bootsier.navbar.layout";
|
|||
/// Lc::n("Reports"), "/tools/reports")
|
||||
/// )
|
||||
/// ))
|
||||
/// .with_item(bs::nav::Item::link_disabled(Lc::n("Disabled"), "#"))
|
||||
/// .with_item(bs::nav::Item::link(Lc::n("Disabled"), "#").with_disabled(true))
|
||||
/// ));
|
||||
/// ```
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue