Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

syncfusion-angular-data-managersyncfusion Angular 数据 manager

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

679

周安装

28

GitHub Stars

公开资料未说明

下载量

222
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

协助数据清洗、聚合与统计计算,输出结构化分析结果。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中处理 CSV/Excel 文件时使用。
  • 通过 GitHub 仓库安装,使用 npx 命令添加技能并指定路径。
  • 需验证数据完整性后再执行操作,防止脏数据污染结果。
  • 涉及数值运算时应注意精度丢失问题,必要时使用高精度库替代。

SKILL.md

Syncfusion Angular DataManager

When to Use This Skill

Use this skill when you need to:

  • Bind local JSON arrays to Angular components
  • Connect Angular apps to remote REST, OData, or GraphQL services
  • Implement querying, filtering, sorting, and paging on data
  • Perform CRUD operations (Create, Read, Update, Delete) with data persistence
  • Work offline and sync data when reconnected
  • Transform and filter data using Query class
  • Customize data communication with middleware
  • Cache data to reduce server requests
  • Handle different data source protocols automatically

This is your primary reference for:

  • Any data operation in Syncfusion Angular components
  • Universal data binding across all components
  • Data source configuration and selection
  • Async operations and error handling
  • Performance optimization with caching

Component Overview

The DataManager is Syncfusion's universal data management module that acts as a bridge between your Angular application and any data source. It provides:

  • 10 Built-in Adaptors — Support for JSON, OData v3/v4, REST, Web API, Web Methods, GraphQL, and custom sources
  • Query Class — Powerful filtering, sorting, grouping, and paging API
  • CRUD Operations — Insert, update, delete with automatic handling
  • Promise-based Async — Native JavaScript Promise support
  • Middleware Customization — Pre/post request hooks for authentication and transformation
  • Offline Support — Work without server connection, sync when online
  • Caching — Reduce server load and improve performance
  • Type Safety — Full TypeScript definitions

⚠️ Security & Trust Boundary

  • This skill generates code only, the agent does not execute data operations or fetch remote endpoints — all DataManager interactions occur solely within the user's application at runtime.
  • Generated code must treat all third-party API responses as untrusted input, never bind to unvalidated or user-provided URLs, and ensure authentication is enforced on all remote endpoints.

Key Concepts & Trigger Keywords

ConceptWhen to UseKey Methods
Local Data BindingWorking with in-memory JSON arraysJsonAdaptor, executeLocal
Remote Data BindingCalling API endpoints for dataUrlAdaptor, WebApiAdaptor, executeQuery
Query ConstructionFiltering, sorting, grouping datafrom(), where(), select(), sortBy(), take()
CRUD OperationsManaging records (add, edit, delete)insert(), update(), remove(), saveChanges()
Adaptor SelectionChoosing the right data source type10 adaptors with decision tree
Error HandlingManaging failure scenarios.catch(), try/catch, error status checking
Offline ModeWorking without server connectionoffline property, localStorage
CachingImproving performanceenableCache, cache clearing strategies
MiddlewareCustomizing requests/responsesapplyPreRequestMiddlewares, applyPostMiddlewares
Async PatternsSequential and parallel operationsasync/await, Promise.all(), then/catch

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: Starting new DataManager implementation, understanding package setup, learning TypeScript imports, configuring your first DataManager instance

Topics covered:

  • Package installation and dependencies
  • Module imports and TypeScript types
  • Creating DataManager instances
  • Difference between executeLocal and executeQuery
  • Basic query execution patterns

Data Binding - Local and Remote

📄 Read: references/data-binding.md

When to read: Deciding between client-side and server-side processing, implementing local JSON binding, connecting to remote APIs, understanding executeLocal vs executeQuery patterns

Topics covered:

  • Local binding with json property
  • Remote binding with url + adaptor
  • Client-side vs server-side processing
  • Promise-based async patterns
  • Basic error handling

Querying and Filtering

📄 Read: references/querying-and-filtering.md

When to read: Building queries, filtering by multiple conditions, sorting results, searching data, pagination, grouping records, advanced predicates

Topics covered:

  • Query class fundamentals
  • from() and select() methods
  • where() with operators and predicates
  • sortBy(), orderBy(), orderByDescending()
  • take(), skip() for pagination
  • search() method
  • Grouping and aggregation

CRUD Operations

📄 Read: references/crud-operations.md

When to read: Adding new records, updating existing data, deleting records, batch operations, CRUD method parameters, persisting changes to server

Topics covered:

  • Insert (add new records)
  • Update (modify existing records)
  • Remove (delete records)
  • keyField in CRUD method parameters
  • saveChanges() for batch operations
  • Error handling and validation

10 Adaptors Guide - Complete Reference

📄 Read: references/adaptors-guide.md

When to read: Selecting appropriate data source, understanding adaptor differences, implementing specific adaptor patterns, working with different API types

Topics covered:

  • JsonAdaptor — Local JavaScript arrays, no server calls
  • ODataAdaptor — OData v3 service endpoints
  • ODataV4Adaptor — OData v4 protocol support
  • UrlAdaptor — Generic RESTful API endpoints
  • WebApiAdaptor — ASP.NET Web API integration
  • WebMethodAdaptor — ASP.NET Web Methods
  • RemoteSaveAdaptor — Client-side queries + server-side CRUD
  • GraphQLAdaptor — GraphQL query language support
  • CustomDataAdaptor — Custom request/response handling
  • CustomAdaptor — Extending built-in adaptors
  • Adaptor decision tree
  • Comparison matrix for all 10
  • Code examples for each adaptor

Middleware Customization

📄 Read: references/middleware-customization.md

When to read: Adding authentication headers, transforming requests/responses, logging API calls, implementing custom business logic

Topics covered:

  • Pre-request middleware (applyPreRequestMiddlewares)
  • Post-request middleware (applyPostMiddlewares)
  • Custom headers (Authorization, etc.)
  • Authentication patterns (Bearer tokens)
  • Request/response transformation
  • Error handling in middleware

Caching and Offline Mode

📄 Read: references/caching-offline-mode.md

When to read: Improving performance with caching, working offline when server unavailable, implementing sync strategies, managing data persistence

Topics covered:

  • Offline property configuration
  • localStorage for data persistence
  • Cache auto-clearing on CRUD
  • Manual cache management
  • Online/offline workflow
  • Sync strategies

Advanced Features

📄 Read: references/advanced-features.md

When to read: Load on demand for large datasets, lazy loading relationships, pagination strategies, deferred operations, async/await patterns, memory management, state persistence

Topics covered:

  • Load on demand pattern
  • Lazy loading with expand()
  • Pagination (client & server-side)
  • Deferred operations with Promises
  • Async/await patterns
  • Promise.all() for parallel operations
  • Error handling with status codes
  • Memory management strategies
  • Type safety with TypeScript
  • State persistence patterns

How-To Recipes

📄 Read: references/how-to-recipes.md

When to read: Quick solutions for common scenarios, best practices, troubleshooting, pattern examples

Topics covered:

  • Work in offline mode
  • Send additional parameters
  • Add custom headers
  • Implement authentication
  • Handle errors gracefully
  • Common patterns
  • Performance optimization tips
  • Troubleshooting guides

Quick Start Example

Setup and Basic Data Binding

Step 1: Install Package

npm install @syncfusion/ej2-data

Step 2: Create Component

import { Component, OnInit } from '@angular/core';
import { DataManager, Query, JsonAdaptor, ReturnOption } from '@syncfusion/ej2-data';

@Component({
  selector: 'app-data-demo',
  templateUrl: './data-demo.component.html',
  styleUrls: ['./data-demo.component.css']
})
export class DataDemoComponent implements OnInit {
  public orders: object[];

  ngOnInit(): void {
    // Local data
    const data = [
      { OrderID: 10248, CustomerID: 'VINET', EmployeeID: 5, ShipCity: 'Reims' },
      { OrderID: 10249, CustomerID: 'TOMSP', EmployeeID: 6, ShipCity: 'Münster' },
      { OrderID: 10250, CustomerID: 'HANAR', EmployeeID: 4, ShipCity: 'Rio de Janeiro' }
    ];

    // Create DataManager with local data
    const dataManager = new DataManager({
      json: data,
      adaptor: new JsonAdaptor()
    });

    // Execute query
    this.orders = dataManager.executeLocal(
      new Query().where('EmployeeID', 'equal', 5)
    );
  }
}

Step 3: Display in Template

<table>
  <thead>
    <tr>
      <th>Order ID</th>
      <th>Customer ID</th>
      <th>Employee ID</th>
      <th>Ship City</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let order of orders">
      <td>{{ order.OrderID }}</td>
      <td>{{ order.CustomerID }}</td>
      <td>{{ order.EmployeeID }}</td>
      <td>{{ order.ShipCity }}</td>
    </tr>
  </tbody>
</table>

Common Patterns

Remote Server with Promise

const dataManager = new DataManager({
  url: 'url',
  adaptor: new WebApiAdaptor()
});

// Using Promise
dataManager.executeQuery(new Query().take(10))
  .then((result: ReturnOption) => {
    this.orders = result.result;
  })
  .catch((error) => {
    console.error('Failed to fetch orders:', error);
  });

Async/Await Pattern

async fetchOrders(): Promise<void> {
  try {
    const result = await this.dataManager.executeQuery(
      new Query().take(10)
    );
    this.orders = result.result;
  } catch (error) {
    console.error('Error:', error);
  }
}

Filtering with Predicates

const query = new Query()
  .where('EmployeeID', 'equal', 5)
  .where('ShipCity', 'startswith', 'Rio');

const result = dataManager.executeLocal(query);

Server-side Operations

const query = new Query()
  .select(['OrderID', 'CustomerID', 'EmployeeID'])
  .where('EmployeeID', 'greaterThan', 3)
  .sortBy('OrderID')
  .take(10)
  .skip(0);

dataManager.executeQuery(query).then((result: ReturnOption) => {
  this.orders = result.result;
  this.totalRecords = result.count;
});

Key Properties Reference

PropertyTypePurpose
jsonarrayLocal data array
urlstringRemote service endpoint
adaptorAdaptorData source type handler
headersobject[]Custom HTTP headers
offlinebooleanEnable offline mode
enableCachebooleanEnable response caching
crossDomainbooleanEnable cross-domain requests
cachingPageSizenumberPaging record count
timeTillExpirationnumberCache TTL in milliseconds (default: infinite)
ignoreOnPersiststring[]Properties to exclude from persistence
timeZoneHandlingbooleanEnable timezone offset handling

Error Handling Best Practices

dataManager.executeQuery(query)
  .then((result: ReturnOption) => {
    if (result.result) {
      this.items = result.result;
    }
  })
  .catch((error: any) => {
    if (error.status === 401) {
      // Redirect to login
      console.error('Unauthorized');
    } else if (error.status === 403) {
      // Access denied
      console.error('Forbidden');
    } else if (error.status === 500) {
      // Server error
      console.error('Server error');
    } else if (error.status === 0) {
      // Network error
      console.error('Network error - check connectivity');
    }
  });

Common Use Cases

Use Case 1: Display Data Table

Start with getting-started.mddata-binding.mdquerying-and-filtering.md

Use Case 2: Implement CRUD Form

Start with adaptors-guide.mdcrud-operations.mdadvanced-features.md

Use Case 3: Work with Multiple Data Sources

Start with adaptors-guide.md (decision tree) → specific adaptor pattern → middleware-customization.md

Use Case 4: Optimize Large Datasets

Start with advanced-features.mdcaching-offline-mode.mdhow-to-recipes.md


TypeScript Type Safety

// Define your data model
interface Order {
  OrderID: number;
  CustomerID: string;
  EmployeeID: number;
  ShipCity: string;
}

// Use generics for type safety
const dataManager: DataManager<Order> = new DataManager({
  json: orders,
  adaptor: new JsonAdaptor()
});

// Typed results
const result = await dataManager.executeQuery(new Query());
const typedOrders: Order[] = result.result as Order[];

Performance Optimization Tips

  1. Use proper adaptor — Select adaptor matching your backend
  2. Filter early — Push filtering to server when possible
  3. Enable caching — Reduce redundant server calls
  4. Lazy load — Load data on demand for large datasets
  5. Pagination — Limit records per request
  6. Offline mode — Load once, work offline
  7. Select columns — Fetch only needed fields

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.92%
按下载量换算82

Claude

29.67%
按下载量换算66

Cursor

19.25%
按下载量换算43

Gemini CLI

8.44%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills