Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Select2 Infinite Scroll

No security coverage Under active development

Part of the Select2 ecosystem · 4 projects

This module provides a custom form element that enhances the Select2 library's functionality by allowing for paginated results and complex querying directly within the search box. It's particularly useful for handling large datasets or API integrations where efficient filtering and retrieval are necessary.

This module provides a custom select2 element (not associated with the select2 module) that allows the developer to page the result set.
Especially useful for large result sets, API calls are also a possible use case.
When the user starts typing in the select2 search box, this also performs separate calls so complex querying can be performed here as well so you don't have to rely on select2 finding the desired result for a certain keyword.

Attention! This module ONLY provides the form element, it does NOT provide a configurable field type due to the requirement to provide a result set endpoint/callback. If you're willing to add this, please feel free to add a merge request containing this functionality.

Dependencies and installation
The select2 library is required for this module to function.

The preferred way to install this is through composer, see the select2 module for instructions.

Examples and usage
An example module is embedded showing the capabilities and how to set-up the form element.

Todo's

  • Write decent developer documentation
  • Possibly a field type, or at least field widget for select elements?

Ask your assistant about Select2 Infinite Scroll

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha2 Pre-release 9–10 Apr 15, 2023
1.0.0-alpha1 Pre-release 9–10 Apr 13, 2023
1.0.x-dev Dev 9–10 Apr 13, 2023