v6: Combobox – load options via AJAX

Open
#43,030 0 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
bootstrap, javascript
Domain
frontend

Research direction

Start by reading the v6 Combobox implementation and its existing option filtering behavior. The proposal asks for options fetched from a URL as the user types, but does not specify the request interface, loading and error states, or expected tests; define those requirements before implementation. Done means the Combobox can use server-fetched options as autocomplete results without a third-party library.

Written by the indexing model from the issue text.

Description

docs feature js needs-decision v6
Proposal

Would you consider adding a way for the v6 Combobox to load its options via AJAX, for example from a URL queried as the user types in the search input?

Motivation and context

Right now the Combobox can only list options that are already in the markup. Many comboboxes pick from lists too large to render up front, such as users, customers or products. Loading the options from the server would let the Combobox work as an autocomplete without needing a third-party library.

Dominant language
MDX
Stars
175k
Forks
78.7k
Avg merge
1d 7h
Merged PRs (30d)
103

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from twbs/bootstrap

All issues in twbs/bootstrap

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.