This project is not covered by Drupal’s security advisory policy.

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?

Project information

Releases