Dropdown API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
Dropdown21 props2 callbacks0 methods
Props21
| Name | Type | Description |
|---|---|---|
environmentOptional |
| Dropdown rendering environment, including host integration and event handling. |
triggerAttributesOptional |
| Additional HTML attributes applied to the dropdown trigger element. |
sourceRequired |
| Data or option source consumed by this component; expand the type for supported representations. |
dataSourceOptional |
| Optional application-owned remote search and ID resolver. Values must be string/number IDs. |
dataContextOptional | unknown | Row/application context; changing its identity invalidates the remote session. |
remoteTextOptional |
| Localized messages for loading, empty and failed remote-option requests. |
valueOptional |
| Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
placeholderOptional | string | undefined | Content shown when there is no entered or selected value. |
disabledOptional | boolean | undefined | Disable all dropdown interaction, including autoOpen and chip removal. Defaults to false. Disabling an open dropdown closes it once; re-enabling does not reopen it automatically. For grid callbacks, use DropdownColumnProps. See the [Dropdown Editor guide](/guides/editors/editor-dropdown/). |
nameOptional | string | undefined | Form field name submitted with the control value. |
idOptional | string | undefined | Identifier used to associate the control with labels, popup content or other elements. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
styleOptional |
| Inline styles or style configuration applied to this component; expand the type for supported entries. |
configOptional |
| Component configuration. Expand the type to see accepted fields and alternative forms. |
beforeOutsideCloseOptional |
| Validate or save a draft before outside-pointer dismissal. False keeps it open. Escape, selection and programmatic closure never invoke this callback. |
renderContentOptional |
| Replace the popup body while retaining the shared trigger, tags and positioning. Custom content owns its keyboard navigation and renders a dialog with `id`. |
renderOptionOptional |
| Custom renderer for an option and its current selection/disabled state. |
renderValueOptional |
| Render the content of each selected value while preserving the built-in single/multi-select wrappers, remove controls, and expand indicator. |
renderPlaceholderOptional |
| Custom renderer for the dropdown placeholder when no option is selected. |
renderSelectedValueOptional |
| Render the selected value |
renderNoResultsOptional |
| Custom renderer for an empty options list. |
Events and callbacks2
| Name | Type | Description |
|---|---|---|
onChangeOptional |
| Receives the new value when the user changes the control. Update the corresponding value prop for controlled use. |
onCloseOptional |
| Requests that the parent close the surface or picker. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.