ExposedDropdownMenuAnchorType

Class

Common
value class ExposedDropdownMenuAnchorType private constructor(private val name: String)

The type of element that can serve as a dropdown menu anchor.

Companion Object

Properties

Common
val PrimaryNotEditable = ExposedDropdownMenuAnchorType("PrimaryNotEditable")

A non-editable primary anchor of the dropdown menu, such as a read-only text field.

An anchor of this type will open the menu with focus.

Common
val PrimaryEditable = ExposedDropdownMenuAnchorType("PrimaryEditable")

An editable primary anchor of the dropdown menu, such as a text field that allows user input.

An anchor of this type will open the menu without focus in order to preserve focus on the soft keyboard (IME).

Common
val SecondaryEditable = ExposedDropdownMenuAnchorType("SecondaryEditable")

A secondary anchor of the dropdown menu that lives alongside an editable primary anchor, such as an icon within an editable text field.

If accessibility services are enabled, an anchor of this type will open the menu with focus. Otherwise, the menu is opened without focus in order to preserve focus on the soft keyboard (IME).