data class SpatialDropdownItem(
val leading: () -> Unit? = null,
val icon: () -> Unit? = null,
val title: String? = null,
val subtitle: String? = null,
val enabled: Boolean = true,
val suffix: () -> Unit? = null,
)SpatialDropdownItem
(
leading
, icon
, title
, subtitle
, enabled
, suffix
)
|
Signature
constructor(
leading: () -> Unit? = null,
icon: () -> Unit? = null,
title: String? = null,
subtitle: String? = null,
enabled: Boolean = true,
suffix: () -> Unit? = null,
)Parameters leading: (() -> Unit)?
A composable function that represents the leading icon or content of the item.
icon: (() -> Unit)?
A composable function that represents the icon of the item.
title: String?
The title text of the item.
subtitle: String?
The subtitle text of the item.
enabled: Boolean
A boolean indicating whether the item is enabled or not.
suffix: (() -> Unit)?
A composable function that represents the suffix of the item. Can be used to display a checkmark on selected items.
Returns SpatialDropdownItem |
enabled
: Boolean
[Get] |
Signature
val enabled: Boolean = true |
icon
: (() -> Unit)?
[Get] |
Signature
val icon: () -> Unit? = null |
leading
: (() -> Unit)?
[Get] |
Signature
val leading: () -> Unit? = null |
subtitle
: String?
[Get] |
Signature
val subtitle: String? = null |
suffix
: (() -> Unit)?
[Get] |
Signature
val suffix: () -> Unit? = null |
title
: String?
[Get] |
Signature
val title: String? = null |