Builder

class Builder<T>

Builder class for creating an IKontextMenuArea with a fluent API.

This class provides extension functions to easily add items to the menu.

Parameters

T

The type of items to be displayed in the context menu

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val items: List<T>

Functions

Link copied to clipboard
fun T.add(): Boolean

Adds an item to the menu.

Link copied to clipboard

Adds all items from a list to the menu.

Link copied to clipboard
fun toKontextMenu(menuContent: @Composable (items: List<T>, onDismissRequest: () -> Unit?) -> Unit): IKontextMenuArea<T>

Creates an IKontextMenuArea with the collected items and the provided menu content.