Added in 1.5.0-alpha17
value class ExposedDropdownMenuAnchorType private constructor(private val name: String)
The type of element that can serve as a dropdown menu anchor.
Companion Object
Properties
Added in 1.5.0-alpha17
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.
Added in 1.5.0-alpha17
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).
Added in 1.5.0-alpha17
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).