Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

syncfusion-angular-autocompletesyncfusion Angular autocomplete 搜索

Agent Skill

syncfusion-angular-autocomplete 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

523

周安装

22

GitHub Stars

公开资料未说明

下载量

183
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-angular-autocomplete(syncfusion Angular autocomplete 搜索)
来源仓库:https://github.com/syncfusion/angular-ui-components-skills
仓库路径:skills/syncfusion-angular-autocomplete
安装命令:
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-autocomplete
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-autocomplete

简介

实现输入框自动补全功能,提升表单填写效率与准确性。syncfusion-angular-autocomplete 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适用于搜索框、下拉选择等需要快速匹配候选值的场景。
  • 通过 GitHub 仓库安装,使用 npx 命令添加技能并指定路径。
  • 需预加载常用选项列表以减少请求延迟,同时支持动态查询扩展。
  • 移动端使用时应注意键盘遮挡问题,优化布局适配不同屏幕。

SKILL.md

Implementing Syncfusion Angular AutoComplete Component

Component Overview & Architecture

The AutoComplete is a text input component that provides matching suggestions as the user types. It is designed for:

  1. Type-ahead suggestions — shows matching items from a data source as the user types
  2. Free-form input — users can type any value, not restricted to the list
  3. Search/filter — multiple filter strategies (StartsWith, Contains, EndsWith)
  4. Autofill — automatically completes the first matched suggestion in the input
  5. Grouped suggestions — categorize items by a groupBy field
  6. Virtual scrolling — efficiently handles thousands of items
  7. Template customization — item, group, header, footer, and empty-state templates

Key Characteristics

AspectDetails
SelectionSingle item; user can also type any free-form value
Data SourcesLocal arrays, remote DataManager, OData, Web API, Observable (async pipe)
FilteringBuilt-in filtering: StartsWith, EndsWith, Contains
AutofillCompletes the first match inline as the user types
PerformanceVirtual scrolling for large datasets (1,000+ items)
FormsTemplate-driven (ngModel) and reactive (FormControl) form integration
AccessibilityWCAG 2.2 compliant, full keyboard navigation, ARIA attributes
CustomizationItem, group, header, footer, noRecords, actionFailure templates; CSS theming

Documentation Navigation Guide

📄 Getting Started

Read: references/getting-started.md

  • Install @syncfusion/ej2-angular-dropdowns package
  • Set up Angular 21+ project with standalone components
  • Import AutoCompleteModule and required CSS themes
  • Create your first AutoComplete with basic data binding
  • Configure popup height, width, and placeholder
  • Enable two-way binding with [(value)]

📄 Data Binding

Read: references/data-binding.md

  • Bind to local arrays (strings, numbers, objects, complex objects)
  • Map value, text, and iconCss fields via fields property
  • Remote data using DataManager with OData, Web API adapters
  • Async pipe pattern for RxJS Observables
  • Object binding with allowObjectBinding
  • Preselecting values using the value property

📄 Filtering & Search

Read: references/filtering-and-search.md

  • Configure filterType (StartsWith, Contains, EndsWith)
  • Limit suggestion count with suggestionCount
  • Minimum character threshold with minLength
  • Case-sensitive filtering with ignoreCase
  • Diacritics/accent-insensitive filtering with ignoreAccent
  • Debounce delay to optimize remote filtering with debounceDelay
  • Custom filtering via the filtering event with updateData

📄 Grouping & Templates

Read: references/grouping-and-templates.md

  • Group suggestions by category using fields.groupBy
  • Item templates for custom rendering
  • Group header templates (inline and fixed)
  • Header and footer templates for the popup
  • Empty state with noRecordsTemplate
  • Action failure template for remote data errors

📄 Feature Configuration

Read: references/feature-configuration.md

  • Autofill: inline suggestion completion with autofill property
  • Highlight matched characters with highlight property
  • Disable individual items with fields.disabled or disableItem method
  • Disable entire component with enabled property
  • Resizable popup with allowResize
  • Virtual scrolling for large datasets with enableVirtualization
  • Show/hide popup button with showPopupButton
  • Show/hide clear button with showClearButton
  • RTL support with enableRtl
  • Sort order with sortOrder

📄 Form Support & Validation

Read: references/form-support-and-validation.md

  • Template-driven forms using ngModel and FormsModule
  • Reactive forms using FormControl, FormGroup, and ReactiveFormsModule
  • Binding and validation patterns
  • Pre-selecting values via form model

📄 Accessibility & Localization

Read: references/accessibility-and-localization.md

  • WCAG 2.2, Section 508, and ADA compliance
  • Full keyboard shortcuts (Arrow keys, Tab, Enter, Escape, Alt+Down/Up)
  • ARIA attributes: aria-haspopup, aria-expanded, aria-selected, aria-autocomplete
  • Screen reader support and focus management
  • Localization with L10n.load() for noRecordsTemplate and actionFailureTemplate
  • RTL language support

📄 Advanced Patterns & How-To

Read: references/advanced-patterns-how-to.md

  • Autofill feature with the autofill property
  • Highlight searched characters with the highlight property
  • Multi-field custom filtering with Predicate (filter by both Name and Code)
  • Icon support via fields.iconCss
  • Suggestion list on focus from browser local storage
  • Custom search and highlight styling

📄 API Reference

Read: references/api.md

  • Complete properties reference with types, defaults, and descriptions
  • All methods with signatures and usage
  • All events with payload types and handler examples

Quick Start Example

// app.component.ts (Angular 21 Standalone)
import { Component } from '@angular/core';
import { AutoCompleteModule } from '@syncfusion/ej2-angular-dropdowns';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [AutoCompleteModule],
  template: `
    <ejs-autocomplete
      id="sports"
      [dataSource]="sportsData"
      placeholder="Find a sport"
      [(value)]="selectedValue">
    </ejs-autocomplete>
  `
})
export class AppComponent {
  public sportsData: string[] = [
    'Badminton', 'Basketball', 'Cricket',
    'Football', 'Golf', 'Hockey', 'Tennis'
  ];
  public selectedValue: string = '';
}

Install the package:

ng add @syncfusion/ej2-angular-dropdowns

Add CSS (styles.css):

@import '../node_modules/@syncfusion/ej2-base/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-inputs/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-lists/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material3.css';

Common Patterns

Pattern 1: Filter with Complex Object Data

// Map fields for object array
public fields: Object = { value: 'Game' };
public sportsData: { [key: string]: Object }[] = [
  { Id: 'Game1', Game: 'Badminton' },
  { Id: 'Game2', Game: 'Cricket' }
];
<ejs-autocomplete [dataSource]="sportsData" [fields]="fields" placeholder="Find a game">
</ejs-autocomplete>

When to use: Whenever your data is an array of objects and you need to display one field as the suggestion text.


Pattern 2: Autofill + Highlight

<ejs-autocomplete
  [dataSource]="data"
  [autofill]="true"
  [highlight]="true"
  filterType="StartsWith">
</ejs-autocomplete>

When to use: Search bars where users expect inline completion and visual emphasis on matched text.


Pattern 3: Remote Data with Debounce

import { DataManager, ODataV4Adaptor, Query } from '@syncfusion/ej2-data';

public data: DataManager = new DataManager({
  url: 'https://services.odata.org/V4/Northwind/Northwind.svc/Customers',
  adaptor: new ODataV4Adaptor,
  crossDomain: true
});
public fields: Object = { value: 'ContactName' };
public query: Query = new Query().select(['ContactName']).take(6);
public debounceDelay: number = 500;
<ejs-autocomplete
  [dataSource]="data"
  [fields]="fields"
  [query]="query"
  [debounceDelay]="debounceDelay"
  filterType="StartsWith">
</ejs-autocomplete>

When to use: API-backed autocomplete where you want to reduce request frequency.


Pattern 4: Virtual Scrolling for Large Datasets

import { AutoCompleteComponent, VirtualScroll } from '@syncfusion/ej2-angular-dropdowns';
AutoCompleteComponent.Inject(VirtualScroll);
<ejs-autocomplete
  [dataSource]="records"
  [fields]="fields"
  [enableVirtualization]="true"
  popupHeight="200px">
</ejs-autocomplete>

When to use: Datasets with 1,000+ items where rendering all DOM elements at once is costly.


Key Properties Quick Reference

PropertyTypeDefaultPurpose
dataSourceArray \DataManager[]Source data for suggestions
fieldsFieldSettingsModel{value: null}Map data columns to component
placeholderstringnullHint text when empty
valuestring \number \boolean \objectnullSelected/typed value
filterTypeFilterType'Contains'How suggestions are matched
minLengthnumber1Minimum chars to trigger suggestions
suggestionCountnumber20Max suggestions shown
autofillbooleanfalseInline completion of first match
highlightbooleanfalseHighlight matched characters
ignoreCasebooleantrueCase-insensitive filtering
ignoreAccentbooleanIgnore diacritics in filtering
debounceDelaynumber300Delay (ms) before filtering fires
enableVirtualizationbooleanfalseVirtual scroll for large data
allowResizebooleanfalseResizable popup
showClearButtonbooleantrueShow ✕ to clear value
showPopupButtonbooleanfalseShow dropdown toggle button
enabledbooleantrueEnable/disable entire component
readonlybooleanfalsePrevent user edits
allowObjectBindingbooleanfalseBind value as full object
sortOrderSortOrdernullSort suggestions (Ascending/Descending)
popupHeightstring \number'300px'Popup list height
popupWidthstring \number'100%'Popup list width
localestring'en-US'Localization culture
enableRtlbooleanfalseRight-to-left rendering

Workflow Decision Tree

Need to implement AutoComplete?
│
├─ What's your data source?
│   ├─ Local array → See Data Binding: "Array of string" or "Array of object"
│   └─ Remote API  → See Data Binding: "Bind to remote data"
│
├─ How should filtering work?
│   ├─ Default (Contains)   → No extra config needed
│   ├─ StartsWith           → filterType="StartsWith"
│   ├─ Custom multi-field   → See Advanced Patterns: "Custom filtering"
│   └─ Accent-insensitive   → [ignoreAccent]="true"
│
├─ Need autofill (inline completion)?
│   └─ YES → [autofill]="true" + filterType="StartsWith"
│
├─ Highlight matched text?
│   └─ YES → [highlight]="true"
│
├─ Large dataset (1,000+ items)?
│   └─ YES → [enableVirtualization]="true" + inject VirtualScroll
│
├─ Using inside a form?
│   ├─ Template-driven → See Form Support: "ngModel"
│   └─ Reactive        → See Form Support: "FormControl"
│
└─ Need accessibility or localization?
    └─ YES → See Accessibility & Localization reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.18%
按下载量换算66

Claude

31.63%
按下载量换算58

Cursor

20.27%
按下载量换算37

Gemini CLI

8.81%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills