UncontainerizedKontextMenuRepresentation

Implementation of KontextMenuRepresentation that provides minimal structure.

Unlike ContainerizedKontextMenuRepresentation, this implementation doesn't provide any UI container. It only handles the context menu state and provides the onDismissRequest lambda to the content. This allows developers to create a completely custom UI for their context menus, such as dialogs or other complex components.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Composable
open override fun <T> Representation(state: ContextMenuState, menuContent: @Composable (List<T>, () -> Unit?) -> Unit, items: List<T>)

Creates a minimal representation of the context menu without any UI container.