Provides functionality for managing different dropdowns inside a widget.
Lifecycle. Invoked when a component is receiving new props. This method is not called for the initial render.
Lifecycle. Invoked once before the component is mounted.
Merges the provided object with two more properties:
- expanded - boolean flag which indicates if an widget should be rendered exclusively.
- toggleDropdown - function, which can be used by an widget in order to obtain exclusive state.
The properties container which should be merged with the properties, related to dropdown state.
They key of an React Widget which contains the dropdown.
The merged object.
Sets the active dropdown of the widget or discards the toggled item from the state.
The widget which requests to toggle its dropdown.
User movement direction when toggled via keyboard.