@ag-grid-community/all-modules

中文文档
27.3.0发布于 2022/05/17MITTypeScriptESM + CJS近 30 天下载 6.7万

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

此软件包已被标记为弃用

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

原始使用文档
文档目录12 节
  1. Features
  2. Looking for a framework specific solution?
  3. Getting started
  4. Install dependencies
  5. Add a placeholder to HTML
  6. Import the grid and styles
  7. Set configuration
  8. Initialise the grid
  9. Issue Reporting
  10. Asking Questions
  11. Contributing
  12. License

alt text

CDNJS npm npm

AG Grid

AG Grid is a fully-featured and highly customizable JavaScript data grid. It delivers outstanding performance, has no third-party dependencies and integrates smoothly with all major JavaScript frameworks.

Here's how our grid looks with multiple filters and grouping enabled:

alt text

Features

In addition to the standard set of features you'd expect from any grid:

  • Column Interactions (resize, reorder, and pin columns)
  • Pagination
  • Sorting
  • Row Selection

Here are some of the features that make AG Grid stand out:

  • Grouping / Aggregation *
  • Custom Filtering
  • In-place Cell Editing
  • Records Lazy Loading *
  • Server-Side Records Operations *
  • Live Stream Updates
  • Hierarchical Data Support & Tree View *
  • Customizable Appearance
  • Customizable Cell Contents
  • Excel-like Pivoting *
  • State Persistence
  • Keyboard Navigation
  • Data Export to CSV
  • Data Export to Excel *
  • Row Reordering
  • Copy / Paste
  • Column Spanning
  • Pinned Rows
  • Full Width Rows

* The features marked with an asterisk are available in the Enterprise version only.

Check out the developer documentation for a complete list of features or visit our official docs for tutorials and feature demos.

Looking for a framework specific solution?

Getting started

Install dependencies

$ npm install --save @ag-grid-community/core

Add a placeholder to HTML

<div id="myGrid" style="height: 150px; width: 600px" class="ag-theme-alpine"></div>

Import the grid and styles

import { Grid } from '@ag-grid-community/core';

import '@ag-grid-community/core/dist/styles/ag-grid.css';
import '@ag-grid-community/core/dist/styles/ag-theme-alpine.css';

Set configuration

var gridOptions = {
    columnDefs: [
        { headerName: 'Make', field: 'make' },
        { headerName: 'Model', field: 'model' },
        { headerName: 'Price', field: 'price' }
    ],
    rowData: [
        { make: 'Toyota', model: 'Celica', price: 35000 },
        { make: 'Ford', model: 'Mondeo', price: 32000 },
        { make: 'Porsche', model: 'Boxster', price: 72000 }
    ]
};

Initialise the grid

var eGridDiv = document.querySelector('#myGrid');
new Grid(eGridDiv, this.gridOptions);

For more information on how to integrate the grid into your project see TypeScript - Building with Webpack 2.

Issue Reporting

If you have found a bug, please report it in this repository's issues section. If you're using the Enterprise version, please use the private ticketing system to do that. For more information on support please see our dedicated support page.

Asking Questions

Look for similar problems on StackOverflow using the ag-grid tag. If nothing seems related, post a new message there. Please do not use GitHub issues to ask questions.

Contributing

AG Grid is developed by a team of co-located developers in London. If you want to join the team check out our jobs board or send your application to [email protected].

License

This project is licensed under the MIT license. See the LICENSE file for more info.

版本与发布记录

@ag-grid-community/all-modules 共发布 28 个版本,首次发布于 2019/11/05;过去 12 个月发布了 0 个版本。

版本发布日期距今
27.3.0latest2022/05/174 年前
27.2.12022/04/204 年前
27.2.02022/04/194 年前
27.1.02022/03/154 年前
27.0.12022/02/114 年前
27.0.02022/02/094 年前

其他发布通道:beta → 22.0.0-beta.2。

关于 @ag-grid-community/all-modules 的常见问题

@ag-grid-community/all-modules 是什么?

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue注意:该包已被作者标记为弃用——Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

如何安装 @ag-grid-community/all-modules?

在项目目录运行 npm install @ag-grid-community/all-modules,或使用 pnpm add / yarn add / bun add。

@ag-grid-community/all-modules 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@ag-grid-community/all-modules 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@ag-grid-community/all-modules 可以商用吗?

@ag-grid-community/all-modules 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ag-grid-community/all-modules 的下载量有多少?

根据 npm 官方下载统计,@ag-grid-community/all-modules 在 2026/10/05 – 2026/11/03 这 30 天内被下载 67,418 次,日均约 2,247 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ag-grid-community/all-modules 还在维护吗?

最新版本 27.3.0 发布于 2022/05/17(4 年前);至今共发布 28 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/11/05。作者已将其标记为弃用,新项目建议寻找替代方案。