Popup

fun Popup(popupState: PopupState, modifier: Modifier = Modifier, onDismiss: () -> Unit = {}, showCloseIcon: Boolean = true)

A composable Popup toolkit component that enables users to see Popup content in a layer that have been configured externally.

Popups may be configured in the Web Map Viewer or Fields Maps Designer).

Note : Even though the Popup class is not stable, there exists an internal mechanism to enable smart recompositions.

Since

300.0.0

Parameters

popupState

The PopupState object that holds the state of the Popup.

modifier

The Modifier to be applied to layout corresponding to the content of this Popup.

onDismiss

Callback that is invoked when the user clicks the close icon in the top app bar.

showCloseIcon

Flag to indicate if the close icon should be shown in the top app bar. If true, the onDismiss callback will be invoked when the close icon is clicked. Default is true.


fun Popup(popup: Popup, modifier: Modifier = Modifier)

Deprecated

Use the overload that uses the PopupState object. This will become an error in a future release.

A composable Popup toolkit component that enables users to see Popup content in a layer that have been configured externally.

Popups may be configured in the Web Map Viewer or Fields Maps Designer).

Note : Even though the Popup class is not stable, there exists an internal mechanism to enable smart recompositions.

Since

200.5.0

Parameters

popup

The Popup configuration.

modifier

The Modifier to be applied to layout corresponding to the content of this Popup.