API reference
API reference
Select your platform
No SDKs available
No versions available

SpatialDropdownItem Class

Modifiers: final
Represents a single item in a dropdown menu.

Signature

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)

Constructors

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: Function0?
  A composable function that represents the leading icon or content of the item.
icon: Function0?
  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: Function0?
  A composable function that represents the suffix of the item. Can be used to display a checkmark on selected items.

Properties

enabled : Boolean
[Get]
Signature
val enabled: Boolean = true
icon : Function0?
[Get]
Signature
val icon: () -> Unit? = null
leading : Function0?
[Get]
Signature
val leading: () -> Unit? = null
subtitle : String?
[Get]
Signature
val subtitle: String? = null
suffix : Function0?
[Get]
Signature
val suffix: () -> Unit? = null
title : String?
[Get]
Signature
val title: String? = null
Did you find this page helpful?