DropdownPopup API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
DropdownPopup12 props2 callbacks0 methods
Props12
| Name | Type | Description |
|---|---|---|
triggerRefRequired |
| Reference to the element that anchors the dropdown popup. |
childrenRequired |
| Content rendered inside the component. Supply nodes from the framework adapter you are using. |
portalTargetOptional |
| DOM element into which the popup is mounted; omitted values use the component default. |
themeOptional | string | null | undefined | Theme applied to popup content so it matches its surrounding application. |
dropdownMenuIdOptional | string | undefined | ID assigned to the mounted dropdown menu. |
popupClassNameOptional | string | undefined | Additional CSS classes for the popup part of the component. |
closeOnClickOutsideOptional | boolean | undefined | Closes the dropdown popup when a pointer interaction occurs outside it. |
alignOptional | "start" | "end" | undefined | Aligns the popup to the start or end of its trigger. |
matchTriggerWidthOptional | boolean | undefined | Makes the dropdown popup match the trigger width. |
maxHeightOptional | number | undefined | Maximum popup height in pixels before its content scrolls. |
observePopupResizeOptional | boolean | undefined | Repositions the popup when its size changes. |
topLayerOptional | boolean | undefined | Promotes the popup above modal dialogs without joining an ancestor's scroll context. |
Events and callbacks2
| Name | Type | Description |
|---|---|---|
onPointerReleaseOptional |
| Handles the mouse/touch release associated with a popup interaction. |
onCloseOptional |
| Requests that the parent close the surface or picker. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.