KontextMenu

@Composable
fun <T> KontextMenu(kontextMenuArea: IKontextMenuArea<T>, kontextMenuRepresentation: KontextMenuRepresentation = ContainerizedKontextMenuRepresentation(), content: @Composable () -> Unit)

Creates a text context menu with the provided IKontextMenuArea and KontextMenuRepresentation.

This function sets up a text context menu with the provided IKontextMenuArea and KontextMenuRepresentation and provides them to the content through CompositionLocalProvider.

Parameters

kontextMenuArea

The IKontextMenuArea to use

kontextMenuRepresentation

The representation to use for the context menu

content

The content to display in the context menu area


@Composable
fun <T> KontextMenu(items: List<T>, menuContent: @Composable (items: List<T>, onDismissRequest: () -> Unit?) -> Unit, kontextMenuRepresentation: KontextMenuRepresentation = ContainerizedKontextMenuRepresentation(), content: @Composable () -> Unit)

Creates a text context menu with the provided items and menu content.

This function sets up a text context menu with the provided items and menu content and provides it to the content through CompositionLocalProvider.

Parameters

items

The list of items to be displayed in the context menu

menuContent

A composable function that renders the content of the menu

kontextMenuRepresentation

The representation to use for the context menu

content

The content to display in the context menu area