Option

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)

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.