Overlay Cascading List Popup
fun OverlayCascadingListPopup(show: Boolean, entries: List<DropdownEntry>, onDismissRequest: () -> Unit, popupModifier: Modifier = Modifier, onDismissFinished: () -> Unit? = null, popupPositionProvider: PopupPositionProvider = ListPopupDefaults.DropdownPositionProvider, alignment: PopupPositionProvider.Align = PopupPositionProvider.Align.End, enableWindowDim: Boolean = true, maxHeight: Dp? = null, minWidth: Dp = 200.dp, renderInRootScaffold: Boolean = true, dropdownColors: DropdownColors = DropdownDefaults.dropdownColors(), collapseOnSelection: Boolean = true)
A cascading list popup rendered inside the host Scaffold. Cascading depth is limited to 2.
Parameters
show
Whether the popup is shown.
entries
Grouped dropdown entries; top-level DropdownItems with non-empty DropdownItem.children become submenu triggers.
on Dismiss Request
Invoked when the popup wants to be dismissed.
on Dismiss Finished
Invoked after the exit animation finishes.
popup Modifier
Modifier applied to the popup body.
popup Position Provider
Position strategy for the primary popup relative to its anchor.
alignment
Alignment of the primary popup.
enable Window Dim
Whether to dim the rest of the window while the popup is shown.
max Height
Maximum height of either side. Null bounds it by the safe area.
min Width
Minimum width of the popup.
render In Root Scaffold
Whether to render in the outermost Scaffold.
dropdown Colors
Colors used by every row.
collapse On Selection
When true, selecting any leaf dismisses the popup.