The ComboBox control, or drop-down, is a text box component that allows users to type a value or choose an option from a list of predefined options. It has several out-of-the-box features, such as data binding, filtering, UI customization, and custom templates.
In editable mode, the ComboBox control allows users to edit in the text box, and suggestions are shown in a drop-down list based on the input. Non-editable mode prevents users from typing and selecting items from the drop-down list.
You can pick from various filtering options such as starts with, contains, and ends with. You can also pick whether to filter with or without case sensitivity.
The ComboBox control supports highlighting the matching text that occurs first.
The ComboBox control supports highlighting the matching text at every occurrence.
The ComboBox control starts offering matches as soon as users start typing. This feature can be changed by setting the number of characters required to start matching.
The combobox component has an autofill option that completes the word that users type from the suggestion text, allowing end users to search for items easily. It can suggest a list of filtered items in a pop-up or append the rest of the suggested word in the input area. It can also append the matched item and display the list of filtered items suggested in the pop-up at the same time.
If the ComboBox control is at the bottom of the application where the default keyboard would appear, the pop-up can be placed at the top of the screen so that it won’t be covered up.
The input field has been designed to address scenarios such as email address bars. The ComboBox control allows users to select multiple items with token representation or simply divide them with a delimiter.
Customizable token representation in the ComboBox control allows users to remove an item with its close button.
Selected items can be divided with desired characters such as “$” for dollar sign separation or “,” for traditional comma separation.
The ComboBox control can be thoroughly customized in the following areas.
The ComboBox control accepts a template for pop-ups to change the look and feel of the items.
You can design your own header and footer for the pop-up list using the header and footer template.
The ComboBox control accepts any custom view in place of the text box.
By default, the appearance of the ComboBox control is designed to adopt native look and feel of the deployment platform, but it can be completely customized.
The color of pop-ups and text can be customized to fit the application design.
The font size can be customized with pixel precision or with standard options such as small, medium, and large.
You are not limited to use only traditional fonts. You can use custom fonts that suit the application, and render certain iconic fonts too.
The ComboBox control provides additional features that make it more user-friendly.
A customizable clear button is available to clear all the text in a single tap. The button can be enabled or disabled.
Watermark prompts users with an information hint when the search box is not in focus and contains an empty string.
Every aspect of the combobox control has been designed with the MVVM pattern in mind.
All static text can be localized to the required language.
Along with a list of strings, a real-time object can also be used to direct the search member to search and display.
The pop-up list has a provision for placing an icon. A member can also be assigned to form the object.