Custom widgets
This module provides custom widgets for Drupal, including a TextAutocompleteWidget that enhances select list fields with autocomplete functionality. This widget supports various list types and can be configured with options for the maximum number of results, matching method, and integration with the Select2 library.
Custom widgets for Drupal 8
TextAutocompleteWidget
Widget to use autocomplete functionality on lists, supports
List (float)
List (integer)
List (string)
Works with lists defined in the UI and list defined using callback_allowed_values_function
Widget settings
Max number of results to return
Specify the max number of result to return during the AJAX callback.
Default: 15
Matching method
Contains
Begins with
Default: Contains
Use select 2
If the Select 2 is installed and enabled, Select 2 can be used.
Default: No