html5的autocomplete,HTML5/JavaScript AutoComplete | AutoSuggest TextBox | Syncfusion

Overview

The HTML5/JavaScript AutoComplete is a textbox control that provides a list of suggestions to select from as the user types. It has several out-of-the-box features such as data binding, filtering, grouping, UI customization, accessibility, and more.

4e4e9a56c9a809199f1c6d0d1c5602f7.png

Data binding

You can bind data from a variety of data sources, such as an array of primitive data, JSON data collections, or remote data sources using different kinds of adaptors such as OData, OData V4, URL, JSON, and Web API. Data binding uses our data manager to manage data and also has customization options for data requests and processing.

Filtering

Built-in filtering support includes a rich set of filtering options that is available to meet all your application needs.

707566cbce8ca76831106ecb7f3ff06d.png

Filter type

Filter data based on starts with, ends with, and contains predicates.

6d2f733be7b59e3a8013c3f2e4519c31.png

Custom filtering

You can customize the built-in filter query or use your own custom filter libraries to populate the data.

dab8c5426446fa702dc867f1d49e7d0b.png

Diacritic-sensitive search

The AutoComplete supports diacritic character-sensitive searching. This behavior can be turned on or off.

bed1556f76c51dbcdab97fc11aa62bb8.png

Limit suggestion items

Limit the number of suggestions to be displayed in the filtered data list.

2ce080fc54cc4e86572d98909562a60a.png

Ignore filter text casing

You can filter data with or without using case sensitivity for typed characters.

335198a0d5f4b13e931e48175bdc5643.png

Minimum filter characters

Set a number of characters required to begin filtering and populating the data.

Highlight matched text

You can configure different visual appearances for the matching text of each suggestion.

453ef40e3105b140ba05e7fb74a2b0bf.png

Autofill search

The JavaScript AutoComplete control has an autofill search option that predicts and completes the word that the user types based on the suggestion text in the dropdown, allowing the end user to search for items easily.

71da359ad3a808f29a1105724584301b.png

Grouping

Group the suggestions based on logically grouped categories with individual headers.

6dcfe8acb0cf001af3a14ba307951769.png

UI customization

Customize the appearance of each item displayed in the suggestion list with templating.

8a3b23f9f4e394fa177d6043c200a35e.png

Item template

Define a custom appearance for each suggestion item by using item templates.

f3660b08d2378a7e132c21b73619d42d.png

Header template

Design a header for the suggestion list using a header template.

4891b2d8b2d21888cea67da1468f68d0.png

Footer template

Design a custom footer for the suggestion list using a footer template.

0aec9f0451d6421001e7fc6e5dbd66a7.png

Icons

Add icons to each suggestion item, like countries with flag icons.

79b805a741a6962623eeb522be78c728.png

Empty record

Provide an option with a custom appearance if there are no search suggestions to display.

Suggestion list

Generate a suggestion list for users as they type in the input textbox.

e3937da86aa165013e564e8d1c07873f.png

Dimension customization

The width and height of the suggestion list is adjustable.

e9e299c315dda747dbe0a76a9bf5e27c.png

Hide or avoid suggestion list

It is possible to hide the default suggestion list and bind the search result onto some other control, such as a data grid.

2d14dec59577d8109b7b2cbed3f852ed.png

Floating label

Developer can control whether the placeholder should float.

Forms support

Seamlessly supports HTML5 forms, Angular template-driven forms, and Angular reactive forms.

Mobile-friendly, responsive UI

Provides a responsive mode that displays an adaptive redesigned UI for mobile devices that recognizes touch gestures.

Other supported frameworks

The AutoComplete component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different AutoComplete platforms from the links below,

Web accessibility

Fully supports WAI-ARIA accessibility standards that make the AutoComplete control accessible to screen readers and assistive devices.

Follows WAI-ARIA best practices for implementing keyboard interaction.

Designs the UI element visuals such as foreground color, background color, line spacing, text, and images based on the WCAG 2.0 standard.

Supports right-to-left (RTL) direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.

Developer-friendly APIs

Developers can customize all UI elements and control their behaviors according to the end user’s requirements using the rich set of client-side APIs.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值