Async Autocomplete Editor
Fetches suggestions from a remote source as the user types, with debouncing, request cancellation, and loading and empty states. Large lookup tables such as customers or SKUs cannot be loaded up front.
Planned. This page shows the specification from issue #193. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An orders grid with a Customer column backed by a mock API that has adjustable latency.
Expected behavior
No request is sent until the minimum number of characters is typed. Requests are debounced. Earlier requests are cancelled when a newer query starts. A loading indicator shows while waiting, followed by results, an empty state or an error message.
Planned API surface
editor: 'autocomplete'editorParams.fetchSuggestions(query, signal)editorParams.debounceMseditorParams.minCharseditorParams.renderOptioneditorParams.allowFreeTextAcceptance criteria
- fetchSuggestions receives an AbortSignal, and requests that are no longer needed are aborted. (pending)
- Results from an outdated query are never displayed. (pending)
- Loading, empty and error states each show a distinct message. (pending)
- Selecting a suggestion commits its value and its label. (pending)