Package-level declarations

Types

Link copied to clipboard
class Builder<T>

Builder class for creating an IKontextMenuArea with a fluent API.

Link copied to clipboard
interface IKontextMenuArea<T> : TextContextMenu

Main interface for creating custom context menus in text fields.

Link copied to clipboard
class KontextMenuKeyShortcut(val key: Key, val ctrl: Boolean = false, val meta: Boolean = false, val alt: Boolean = false, val shift: Boolean = false)

Represents a keyboard shortcut for context menu items.

Functions

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

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

@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.

Link copied to clipboard
inline fun <T> kontextMenuArea(noinline menuContent: @Composable (items: List<T>, onDismissRequest: () -> Unit?) -> Unit, builder: Builder<T>.() -> Unit): IKontextMenuArea<T>

Creates an IKontextMenuArea with a builder pattern.