ag-grid-angular
TypeScript icon, indicating that this package has built-in type declarations

33.2.4 • Public • Published

Angular Data Grid | Angular Table

AG Grid Logo
GitHub Release NPM Downloads GitHub Repo stars GitHub forks

Quality Gate Status npms.io Maintenance Score GitHub commit activity Dependents

AG Grid is a fully-featured and highly customizable Angular Data Grid. It delivers outstanding performance and has no third-party dependencies.


High Performance Demo

📖 Overview

Table of Contents

AG Grid is available in two versions: Community & Enterprise.

Features

Feature AG Grid Community AG Grid Enterprise
Filtering ✅ (Advanced)
Sorting
Cell Editing
CSV Export
Drag & Drop
Themes and Styling
Selection
Accessibility
Infinite Scrolling
Pagination
Server-Side Data ✅ (Advanced)
Custom Components
Integrated Charting
Range Selection
Row Grouping and Aggregation
Pivoting
Excel Export
Clipboard Operations
Master/Detail
Tree Data
Column Menu
Context Menu
Tool Panels
Support

ℹ️ Note:

Visit the Pricing page for a full comparison.

Examples

We've created several demos to showcase AG Grid's rich feature set across different use cases. See them in action below, or interact with them on our Demo page.

🏦 Financial Demo

Financial data example featuring live updates and sparklines:

Finance

📦 Inventory Demo

Inventory data example to view and manage products:

Finance
🧑‍💼 HR Demo

HR data example showing hierarchical employee data:

Finance

⚡️ Quick Start

AG Grid is easy to set up - all you need to do is provide your data and define your column structure.

Installation

$ npm install --save ag-grid-angular

Setup

1. Register Modules

Register the AllCommunityModule to access all Community features:

import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';

// Register all Community features
ModuleRegistry.registerModules([AllCommunityModule]);

ℹ️ Note:

To minimize bundle size, only register the modules you want to use. See the Modules page for more information.

2. Import the Angular Data Grid

import { Component } from '@angular/core';

// Angular Data Grid Component
import { AgGridAngular } from 'ag-grid-angular';
// Column Definition Type Interface
import { ColDef } from 'ag-grid-community';

3. Define Rows and Columns

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [AgGridAngular], // Add Angular Data Grid Component
  styleUrls: ['./app.component.css'],
  template: ``
})

export class AppComponent {
  // Row Data: The data to be displayed.
  rowData = [
    { make: "Tesla", model: "Model Y", price: 64950, electric: true },
    { make: "Ford", model: "F-Series", price: 33850, electric: false },
    { make: "Toyota", model: "Corolla", price: 29600, electric: false },
  ];

  // Column Definitions: Defines the columns to be displayed.
  colDefs: ColDef[] = [
    { field: "make" },
    { field: "model" },
    { field: "price" },
    { field: "electric" }
  ];
}

4. Create the Angular Data Grid Component

template: `
<!-- The AG Grid component -->
<ag-grid-angular
  [rowData]="rowData"
  [columnDefs]="colDefs"
  style="height: 500px;" />
`;

ℹ️ Note:

For more information on building Data Grids with AG Grid, refer to our Documentation.

Seed Projects

We also provide Seed Projects to help you get started with common configurations:

Environment Framework
Create React App (CRA) React Logo
Vite React Logo
Create Next App React Logo
Vite - TypeScript TypeScript Logo
Webpack 5 - TypeScript TypeScript Logo
Webpack 5 - Angular Angular Logo
Angular CLI Angular Logo
Nuxt Vue3 Logo
Vite Vue3 Logo

🛠️ Customisations

AG Grid is fully customisable, both in terms of appearance and functionality. There are many ways in which the grid can be customised and we provide a selection of tools to help create those customisations.

Custom Components

You can create your own Custom Components to customise the behaviour of the grid. For example, you can customise how cells are rendered, how values are edited and also create your own filters.

There are a number of different Component Types that you can provide to the grid, including:

To supply a custom cell renderer and filter components to the Grid, create a direct reference to your component within the gridOptions.columnDefs property:

gridOptions = {
    columnDefs: [
        {
            field: 'country', // The column to add the component to
            cellRenderer: CountryCellRenderer, // Your custom cell component
            filter: CountryFilter, // Your custom filter component
        },
    ],
};

Themes

AG Grid has 4 themes, each available in light & dark modes:

Quartz Material
Quartz Theme Material Theme
Alpine Balham
Alpine Theme Balham Theme

Custom Themes

All AG Grid themes can be customised using the Theming API, or you can create a new theme from scratch with the help of our Theme Builder or Figma Design System.

🌍 Community

Tools & Extensions

AG Grid has a large and active community who have created an ecosystem of 3rd party tools, extensions and utilities to help you build your next project with AG Grid, no matter which language or framework you use:

Showcase

AG Grid is used by 100,000's of developers across the world, from almost every industry. Whilst most of these projects are private, we've curated a selection of open-source projects from different industries where household names use AG Grid, including J.P.Morgan, MongoDB and NASA. Visit our Community Showcase page to learn more.

Stargazers

Founded in 2016, AG Grid has seen a steady rise in popularity and is now the market leader for Data Grids:

The AG Grid star history chart

🤝 Support

Enterprise Support

AG Grid Enterprise customers have access to dedicated support via ZenDesk, which is monitored by our engineering teams.

Bug Reports

If you have found a bug, please report it in this repository's issues section.

GitHub Issues

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.

Stack Exchange questions

Contributing

AG Grid is developed by a team of co-located developers in London. If you want to join the team send your application to info@ag-grid.com.

⚠️ License

ag-grid-community is licensed under the MIT license.

ag-grid-enterprise has a Commercial license.

See the LICENSE file for more info.

AG ChartsLogoAG Charts

If you've made it this far, you may be interested in our latest project: AG Charts - The best Angular Charting library in the world.

Initially built to power Integrated Charts in AG Grid, we open-sourced this project in 2018. Having seen the steady rise in popularity since then, we have decided to invest in AG Charts with a dedicated Enterprise version (ag-charts-enterprise) in addition to our continued support of ag-charts-community.

Preview of AG Charts Angular Charting Examples

Follow us to keep up to date with all the latest news from AG Grid:

Twitter Badge LinkedIn Badge YouTube Badge Blog Badge

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
33.2.410,916latest
32.3.69,031v32-lts

Version History

VersionDownloads (Last 7 Days)Published
33.2.410,916
33.2.32,928
32.3.69,031
32.3.5521
33.2.2781
33.2.16,977
33.2.01,624
32.3.43,721
33.1.17,728
33.1.03,038
33.0.45,850
33.0.33,050
33.0.2295
33.0.1116
33.0.099
32.3.312,279
32.3.21,206
32.3.1794
32.3.02,115
32.2.21,762
32.2.1995
32.2.02,832
32.1.04,551
31.3.417,034
32.0.22,722
32.0.11,471
32.0.0818
31.3.21,981
31.3.1497
31.3.015
31.2.11,172
31.2.0487
31.1.12,797
31.1.0995
31.0.3971
31.0.2195
31.0.1716
31.0.01,093
30.2.111,097
30.2.01,673
30.1.0802
30.0.6906
30.0.5274
30.0.3605
30.0.2221
30.0.14
30.0.0102
29.3.59,785
29.3.4377
29.3.391
29.3.243
29.3.10
29.3.077
29.2.01,959
29.1.0684
29.0.0747
28.2.164,939
28.2.0661
28.1.1889
28.1.0324
28.0.01,226
27.3.0-beta.00
27.3.06,383
27.2.1142
27.2.039
27.1.1326
27.1.01
27.0.0360
26.2.02,440
26.1.0297
26.0.0233
25.3.04,642
25.2.0148
25.1.0545
25.0.151
25.0.0201
24.1.01,636
24.0.0350
23.2.13,612
23.2.033
23.1.181
23.1.018
23.0.373
23.0.216
23.0.027
22.1.11,689
22.1.0202
22.0.047
22.0.0-beta.21
21.2.21,248
21.2.1136
21.2.08
21.1.0201
21.0.1309
21.0.06
20.2.01,780
20.1.0299
20.0.0137
19.1.2941
19.1.113
19.0.0298
18.1.0673
18.0.1551
18.0.00
17.1.0523
17.0.0150
16.0.0195
15.0.0135
14.2.0187
14.1.013
14.0.018
13.3.047
13.2.015
13.1.114
13.1.04
13.0.05
12.0.0102
11.0.030
10.1.020
10.0.08
9.1.031
9.0.316
9.0.01
8.2.033
8.1.06
8.0.01

Package Sidebar

Install

npm i ag-grid-angular

Weekly Downloads

245,406

Version

33.2.4

License

MIT

Unpacked Size

943 kB

Total Files

21

Last publish

Collaborators

  • ceolter
  • seanlandsman
  • alberto.gutierrez
  • rmc.software