✨ (base): Oculta separadores en menús sin opciones
`Dropdown::items()` devuelve `dropdown::Items`, cuyo `render()` sólo pinta un encabezado si su grupo tiene algún elemento visible, y un separador sólo entre elementos visibles. Lo aprovecha cualquier tema que pinte el menú con `items().render()`.
This commit is contained in:
parent
e2e2ccb31e
commit
c940403869
9 changed files with 292 additions and 10 deletions
|
|
@ -5,3 +5,6 @@ pub use component::Dropdown;
|
|||
|
||||
mod item;
|
||||
pub use item::{Item, ItemKind};
|
||||
|
||||
mod items;
|
||||
pub use items::Items;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue