The Droplist component.

Parameters:
NameTypeDescription
propsobject

Props for the Droplist component.

Properties
NameTypeDescription
alignstring

The alignment of the droplist, one of left or right.

closeOnClickboolean

Whether to close the droplist when an item is clicked.

customAttributesobject

The custom attributes for the droplist.

customClassesstring | Array | object

The custom classes for the droplist.

droplistAttributesobject

The droplist attributes.

listItemsArray

The list items for the droplist.

onAfterClosefunction

The callback function to run after the droplist closes.

onAfterOpenfunction

The callback function to run after the droplist opens.

onClosefunction

The callback function to run when the droplist closes.

onOpenfunction

The callback function to run when the droplist opens.

openOnHoverboolean

Whether to open sublists on hover.

triggerAttributesobject

The trigger attributes for the droplist.

widthnumber

The width of the droplist.

refobject

The ref for the droplist.

Since
  • 4.3.0
Returns:

The Droplist component.

Type: 
React.ReactElement

Methods

(inner) closeDroplist()

Closes the droplist.

(inner) openDroplist()

Opens the droplist.