SelectInteractionParams

data class SelectInteractionParams(val onClick: (Boolean) -> Unit, val onClickContentDescription: String?, val enabled: Boolean = true)

Select interaction params

Parameters

onClick

action triggered when select component is clicked. Here you should change expanded state to true if you want to display the options

onClickContentDescription

custom message to describe click action when talk back is active. "Will replace the default message "Double tap to activate"

enabled

whether the component is enabled or grayed out.

Constructors

Link copied to clipboard
constructor(onClick: (Boolean) -> Unit, onClickContentDescription: String?, enabled: Boolean = true)

Properties

Link copied to clipboard
val enabled: Boolean = true
Link copied to clipboard
val onClick: (Boolean) -> Unit