UNPKG

5.88 kBMarkdownView Raw
1![AG Grid HTML5 Grid trusted by the community, built for enterprise](./github-banner.png "AG Grid")
2
3[![CDNJS](https://img.shields.io/cdnjs/v/ag-grid)](https://cdnjs.com/libraries/ag-grid) [![Github Stars](https://img.shields.io/github/stars/ag-grid/ag-grid?style=social)](https://github.com/ag-grid/ag-grid) [![Twitter](https://img.shields.io/twitter/follow/ag_grid?style=social)](https://twitter.com/ag_grid)
4
5| Module | Info |
6| --------------------|------------------:|
7| ag-grid-community | [![npm](https://img.shields.io/npm/dm/ag-grid-community)](https://www.npmjs.com/package/ag-grid-community) <br> [![Bundle Phobia](https://badgen.net/bundlephobia/minzip/ag-grid-community)](https://bundlephobia.com/result?p=ag-grid-community) <br> [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ag-grid-community&metric=alert_status)](https://sonarcloud.io/dashboard?id=ag-grid-community) <br> |
8| ag-grid-enterprise | [![npm](https://img.shields.io/npm/dm/ag-grid-enterprise)](https://www.npmjs.com/package/ag-grid-enterprise) <br> [![Bundle Phobia](https://badgen.net/bundlephobia/minzip/ag-grid-enterprise)](https://bundlephobia.com/result?p=ag-grid-enterprise) <br> [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ag-grid-enterprise&metric=alert_status)](https://sonarcloud.io/dashboard?id=ag-grid-enterprise) |
9
10# AG Grid
11
12AG Grid is a fully-featured and highly customizable JavaScript data grid.
13It delivers [outstanding performance](https://www.ag-grid.com/example?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github), has no third-party dependencies and [integrates smoothly with all major JavaScript frameworks](https://www.ag-grid.com/javascript-data-grid/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github).
14
15Here's how our grid looks with multiple filters and grouping enabled:
16
17![Image of AG Grid showing filtering and grouping enabled.](./github-grid-demo.jpg "AG Grid demo")
18
19## Features
20
21In addition to the standard set of features you'd expect from any grid:
22
23* Column Interactions (resize, reorder, and pin columns)
24* Pagination
25* Sorting
26* Row Selection
27
28Here are some of the features that make AG Grid stand out:
29
30* Grouping / Aggregation *
31* Accessibility support
32* Custom Filtering
33* In-place Cell Editing
34* Records Lazy Loading *
35* Server-Side Records Operations *
36* Live Stream Updates
37* Hierarchical Data Support & Tree View *
38* Customizable Appearance
39* Customizable Cell Contents
40* State Persistence
41* Keyboard Navigation
42* Data Export to CSV
43* Data Export to Excel *
44* Excel-like Pivoting *
45* Row Reordering
46* Copy / Paste
47* Column Spanning
48* Pinned Rows
49* Full Width Rows
50* Integrated Charting
51* Sparklines
52
53\* The features marked with an asterisk are available in the [Enterprise version](https://www.ag-grid.com/license-pricing?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) only.
54
55Check out the [developer documentation](https://www.ag-grid.com/documentation/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) for a complete list of features or visit [our official docs](https://www.ag-grid.com/features-overview/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) for tutorials and feature demos.
56
57## Looking for a framework specific solution?
58
59* [Get Started with Angular](https://www.ag-grid.com/angular-data-grid/getting-started/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github)
60* [Get Started with React](https://www.ag-grid.com/react-data-grid/getting-started/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github)
61* [Get Started with Vue](https://www.ag-grid.com/vue-data-grid/getting-started/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github)
62
63## Getting started
64
65### Install dependencies
66
67```sh
68$ npm install --save ag-grid-community
69```
70
71### Add a placeholder to HTML
72
73```html
74<div id="myGrid" style="height: 150px; width: 600px" class="ag-theme-alpine"></div>
75```
76
77### Import the grid and styles
78
79```js
80import { Grid } from 'ag-grid-community';
81
82import 'ag-grid-community/styles//ag-grid.css';
83import 'ag-grid-community/styles//ag-theme-alpine.css';
84```
85
86### Set configuration
87
88```js
89var gridOptions = {
90 columnDefs: [
91 { headerName: 'Make', field: 'make' },
92 { headerName: 'Model', field: 'model' },
93 { headerName: 'Price', field: 'price' }
94 ],
95 rowData: [
96 { make: 'Toyota', model: 'Celica', price: 35000 },
97 { make: 'Ford', model: 'Mondeo', price: 32000 },
98 { make: 'Porsche', model: 'Boxster', price: 72000 }
99 ]
100};
101```
102
103### Initialise the grid
104
105```js
106var eGridDiv = document.querySelector('#myGrid');
107new Grid(eGridDiv, this.gridOptions);
108```
109
110For more information on how to integrate the grid into your project see [Building AG Grid Applications](https://www.ag-grid.com/javascript-data-grid/building/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github).
111
112## Issue Reporting
113
114If you have found a bug, please report it in this repository's [issues](https://github.com/ag-grid/ag-grid/issues) section. If you're using the Enterprise version, please use the [private ticketing](https://ag-grid.zendesk.com/) system to do that.
115
116## Asking Questions
117
118Look for similar problems on [StackOverflow](https://stackoverflow.com/questions/tagged/ag-grid) using the `ag-grid` tag. If nothing seems related, post a new message there. Please do not use GitHub issues to ask questions.
119
120## Contributing
121
122AG Grid is developed by a team of co-located developers in London. If you want to join the team check out our [jobs board](https://www.ag-grid.com/ag-grid-jobs-board/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) or send your application to info@ag-grid.com.
123
124## License
125
126This project is licensed under the MIT license. See the [LICENSE file](./LICENSE.txt) for more info.