The AutoComplete supports wrapping nested elements into a group based on different categories. The category of each list item can be mapped through the
GroupBy field in the data table. The group header is displayed as both inline and fixed headers. The fixed group header content is updated dynamically on scrolling the suggestion list with its category value.
We are using Blazore.Tyoehead to create Autocomplete textbox. Here are some of the key features of the component.
The primary feature of the component is in the way it handles searching. You provide the component with a search method which it will call with the search text entered.
Developers are able to provide templates for the following things.
- Selected result
- Search result
- Not found result
There are two versions of the component, standalone and forms integrated. The first is designed to work independently while the second will only work with Blazor built-in forms and validation components.
Here are some of the steps to create Autocomplete textbox
Step 1
Create a new C# Blazor server-side application project. Select Blazor App from the template and click the Next button.
Step 2
Now, the project configuration window appears. Click Create button to create a new project with the default project configuration.
Step 3
Choose Blazor Server App from the dashboard and click Create button to create a new Blazor server-side application.
Step 4
Install the Blazored.Typeahead NuGet package as a reference to your Blazor application from Nuget.org.
Step 5
Create a new Component file named Checkbox under Data folder.