Option
data class Option(val icon: IconSource? = null, val titleText: String, val subtitleText: String? = null, val selected: Boolean = false, val disabled: Boolean = false, val details: OptionDetails? = null, val onLongClick: () -> Unit? = null, val customView: @Composable (selected: Boolean) -> Unit? = null, val listTopView: @Composable (selected: Boolean) -> Unit? = null, val listBottomView: @Composable (selected: Boolean) -> Unit? = null) : Serializable
An option for the the option dialog.
Parameters
icon
The icon displayed in the option.
titleText
The title displayed in the option.
subtitleText
The subtitle displayed in the option.
selected
The state if the option is selected by default.
disabled
The state if the option is disabled permanently.
details
Define further information with longer texts. The option will be marked with an Info-Icon and the user can open a dialog to the option where the longer texts are displayed.
onLongClick
The listener that is invoked when the option recognizes a long click.
customView
Replace the standard grid or list item view with a custom view.
listTopView
Add a content above the option list item.
listBottomView
Add a content below the option list item.
Constructors
Link copied to clipboard
constructor(icon: IconSource? = null, titleText: String, subtitleText: String? = null, selected: Boolean = false, disabled: Boolean = false, details: OptionDetails? = null, onLongClick: () -> Unit? = null, customView: @Composable (selected: Boolean) -> Unit? = null, listTopView: @Composable (selected: Boolean) -> Unit? = null, listBottomView: @Composable (selected: Boolean) -> Unit? = null)