SingleClickAndClose

class SingleClickAndClose<T>(val onItemClicked: (item: T) -> Unit) : DialogList.SelectionMode<T>

single click mode for the list dialog

this mode will close the dialog as soon as a single item is selected

Parameters

onItemClicked

the callback that will be used to emit the single item that was clicked before the dialog is dismissed

Constructors

Link copied to clipboard
constructor(onItemClicked: (item: T) -> Unit)

Properties

Link copied to clipboard
val onItemClicked: (item: T) -> Unit