Accessible Autocomplete Element/Widget
48 sites
Security covered
This module provides an autocomplete field that enhances accessibility by using the Accessible Autocomplete library. It can be used for form widgets or directly by developers in custom code.
Summary
Provides a Render element that extends from a Select field and automatically converts it to use the Accessible Autocomplete library.
Installation
- Download as per normal
- Install Accessible Autocomplete either:
- Using npm into the folder above your Drupal installation.
npm i -S @drupal/autocomplete. The library should exist at/path/to/drupal/../node_modules/@drupal/autocomplete - Manually, and extracting to
/libraries/a11y_autocompleteinside your Drupal installation.
- Using npm into the folder above your Drupal installation.
- Enable the module as usual
- Select it as a widget for field UI fields, or if you're a developer, use the new
'#type' => 'a11y_autocomplete'anywhere you'd use'#type' => 'select'
Known issues
Please use the issue queue to report any issues.
Credits
Written by Lee Rowlands for a client of PreviousNext