{# A single-select dropdown over a choice source, searched as it is typed. #} {# #} {# source The Alpine expression for the choice source: 'field' for a Glue #} {# form field, or any object with the members listed in #} {# js/search_and_select.js. #} {# placeholder Optional. Shown when nothing is chosen. Defaults to 'Search ...'. #} {# search_placeholder Optional. The search box's. Defaults to 'Search...'. #} {# include_empty Optional. Lists an empty choice first, which clears the value, #} {# for a field that isn't required, as the plain select does. #} {# empty_label Optional. The empty choice's label. Defaults to 'Select ...'. #} {# x_control_id Optional. An Alpine expression for the shown input's id, which #} {# a label is tied to: 'fieldId' in a Glue field's widget. #} {# #} {# Choosing a value raises input and change on the input, which bubble. #}
Searching...
{% if include_empty %}
{{ empty_label|default:'Select ...' }}
{% endif %}
Start typing to search