settings_ui: Dynamic navbar filtering (#39494)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -107,7 +107,8 @@ impl RenderOnce for ListHeader {
|
||||
h_flex()
|
||||
.gap(DynamicSpacing::Base04.rems(cx))
|
||||
.children(self.toggle.map(|is_open| {
|
||||
Disclosure::new("toggle", is_open).on_toggle(self.on_toggle.clone())
|
||||
Disclosure::new("toggle", is_open)
|
||||
.on_toggle_expanded(self.on_toggle.clone())
|
||||
}))
|
||||
.child(
|
||||
div()
|
||||
|
||||
@@ -308,7 +308,10 @@ impl RenderOnce for ListItem {
|
||||
.when(is_open && !self.always_show_disclosure_icon, |this| {
|
||||
this.visible_on_hover("")
|
||||
})
|
||||
.child(Disclosure::new("toggle", is_open).on_toggle(self.on_toggle))
|
||||
.child(
|
||||
Disclosure::new("toggle", is_open)
|
||||
.on_toggle_expanded(self.on_toggle),
|
||||
)
|
||||
}))
|
||||
.child(
|
||||
h_flex()
|
||||
|
||||
Reference in New Issue
Block a user