1 | 
|
2 |
|
3 | [](https://cdnjs.com/libraries/ag-grid) [](https://github.com/ag-grid/ag-grid) [](https://twitter.com/ag_grid)
|
4 |
|
5 | | Module | Info |
|
6 | | --------------------|------------------:|
|
7 | | ag-grid-community | [](https://www.npmjs.com/package/ag-grid-community) <br> [](https://bundlephobia.com/result?p=ag-grid-community) <br> [](https://sonarcloud.io/dashboard?id=ag-grid-community) <br> |
|
8 | | ag-grid-enterprise | [](https://www.npmjs.com/package/ag-grid-enterprise) <br> [](https://bundlephobia.com/result?p=ag-grid-enterprise) <br> [](https://sonarcloud.io/dashboard?id=ag-grid-enterprise) |
|
9 |
|
10 | # AG Grid
|
11 |
|
12 | AG Grid is a fully-featured and highly customizable JavaScript data grid.
|
13 | It 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 |
|
15 | Here's how our grid looks with multiple filters and grouping enabled:
|
16 |
|
17 | 
|
18 |
|
19 | ## Features
|
20 |
|
21 | In 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 |
|
28 | Here 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 |
|
55 | Check 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
|
80 | import { Grid } from 'ag-grid-community';
|
81 |
|
82 | import 'ag-grid-community/styles//ag-grid.css';
|
83 | import 'ag-grid-community/styles//ag-theme-alpine.css';
|
84 | ```
|
85 |
|
86 | ### Set configuration
|
87 |
|
88 | ```js
|
89 | var 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
|
106 | var eGridDiv = document.querySelector('#myGrid');
|
107 | new Grid(eGridDiv, this.gridOptions);
|
108 | ```
|
109 |
|
110 | For 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 |
|
114 | If 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 |
|
118 | Look 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 |
|
122 | 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](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 |
|
126 | This project is licensed under the MIT license. See the [LICENSE file](./LICENSE.txt) for more info.
|