WindowListPopup

fun WindowListPopup(show: Boolean, popupModifier: Modifier = Modifier, popupPositionProvider: PopupPositionProvider = ListPopupDefaults.DropdownPositionProvider, alignment: PopupPositionProvider.Align = PopupPositionProvider.Align.Start, enableWindowDim: Boolean = true, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null, maxHeight: Dp? = null, minWidth: Dp = ListPopupDefaults.MinWidth, content: @Composable () -> Unit)

A popup with a list of items, rendered at window level without Scaffold.

Use LocalDismissState inside content to request dismissal from inner composables.

Parameters

show

Whether the WindowListPopup is shown.

popupModifier

The modifier to be applied to the WindowListPopup.

popupPositionProvider
alignment

The alignment of the WindowListPopup.

enableWindowDim

Whether to enable window dimming when the WindowListPopup is shown.

onDismissRequest

The callback when the WindowListPopup is dismissed.

onDismissFinished

The callback when the WindowListPopup is completely dismissed (after exit animation).

maxHeight

The maximum height of the WindowListPopup. If null, the height will be calculated automatically.

minWidth

The minimum width of the WindowListPopup.

content

The Composable content of the WindowListPopup. You should use the ListPopupColumn in general.