AutocompleteCombobox

Wrapper for Autocomplete with the ability to select an action when user input is not valid.

Note

Difference between Autocomplete, AutoCombobox, and AutocompleteCombobox:
- Autocomplete is InputField with autocomplete feature.
- AutoCombobox is Combobox with the option to select items by typing, with it you can get selected items.
- AutocompleteCombobox is a wrapper for Autocomplete with the ability to select an action when user input is invalid.

Options

  • Autocomplete AutocompleteString

    Autocomplete.

  • AutocompleteToggle Button

    Button to show autocomplete values.

  • IfInvalid InvalidMode

    Action when user input is invalid: Ignore, FocusInputField, ResetInputField.

MultipleSelect Combobox with Autocomplete

How to combine ComboboxMultiselect with Autocomplete:

  • Create ComboboxMultiselect and Autocomplete of required type

  • move Autocomplete.InputField next to Combobox.Current and add LayoutElement with specified MinWidth

  • move DisplayListView and TargetListView next to Combobox.ListView and add LayoutElement with enabled ignoreLayout

  • copy RectTransform settings and DataSource from Combobox.ListView to the DisplayListView and TargetListView

  • TargetListView: enable MultipleSelect

  • Combobox: specify TargetListView as Combobox.ListView

  • delete or disable the previous Combobox.ListView

  • Autocomplete: OnOptionSelected event: add reset InputField.text