KwikDropdownItem

data class KwikDropdownItem(val id: UUID = UUID.randomUUID(), val text: @Composable () -> Unit, val onClick: () -> Unit, val enabled: Boolean = true, val leadingIcon: @Composable () -> Unit? = null, val trailingIcon: @Composable () -> Unit? = null, val divider: Boolean = false)

A data class representing an item in the dropdown menu.

Parameters

id

: The unique identifier for the item.

text

: The text to be displayed for the item.

onClick

: The callback that will be called when the item is clicked.

enabled

: A boolean indicating whether the item is enabled or not. Default is true.

leadingIcon

: A composable function that represents the leading icon for the item. Default is null.

trailingIcon

: A composable function that represents the trailing icon for the item. Default is null.

divider

: A boolean indicating whether to show a divider after the item. Default is false.

Constructors

Link copied to clipboard
constructor(id: UUID = UUID.randomUUID(), text: @Composable () -> Unit, onClick: () -> Unit, enabled: Boolean = true, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, divider: Boolean = false)

Properties

Link copied to clipboard
val divider: Boolean = false
Link copied to clipboard
val enabled: Boolean = true
Link copied to clipboard
val id: UUID
Link copied to clipboard
val leadingIcon: @Composable () -> Unit? = null
Link copied to clipboard
val onClick: () -> Unit
Link copied to clipboard
val text: @Composable () -> Unit
Link copied to clipboard
val trailingIcon: @Composable () -> Unit? = null