UNPKG

5.05 kBMarkdownView Raw
1![alt text](./github-banner.png "AG Grid")
2
3[![CDNJS](https://img.shields.io/cdnjs/v/ag-grid)](https://cdnjs.com/libraries/ag-grid) [![npm](https://img.shields.io/npm/dm/ag-grid-angular)](https://www.npmjs.com/package/ag-grid-angular) [![Bundle Phobia](https://badgen.net/bundlephobia/minzip/ag-grid-angular)](https://bundlephobia.com/result?p=ag-grid-angular) [![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
5AG Grid Angular Component
6------
7
8AG Grid is a fully-featured and highly customizable JavaScript data grid.
9It delivers [outstanding performance](https://www.ag-grid.com/example.php?utm_source=ag-grid-angular-readme&utm_medium=repository&utm_campaign=github#/performance/1), has no 3rd party dependencies and integrates smoothly with Angular as Angular Component. Here's how our grid looks like with multiple filters and grouping enabled:
10
11![alt text](./github-grid-demo.jpg "Logo Title Text 1")
12
13<br/>Version 22.1.1 of <code>ag-grid-angular</code> is the last version that supports Angular 5 and before.<br/>Version 23 onwards of <code>ag-grid-angular</code> will support Angular 6+ only.
14
15Features
16--------------
17
18Besides the standard set of features you'd expect from any grid:
19
20* Column Interactions (resize, reorder, and pin columns)
21* Pagination
22* Sorting
23* Row Selection
24
25Here are some of the features that make AG Grid stand out:
26
27* Grouping / Aggregation*
28* Custom Filtering
29* In-place Cell Editing
30* Records Lazy Loading *
31* Server-Side Records Operations *
32* Live Stream Updates
33* Hierarchical Data Support & Tree View *
34* Customizable Appearance
35* Customizable Cell Contents
36* Excel-like Pivoting *
37* State Persistence
38* Keyboard navigation
39* Data Export to CSV
40* Data Export to Excel *
41* Row Reordering
42* Copy / Paste
43* Column Spanning
44* Pinned Rows
45* Full Width Rows
46
47\* The features marked with an asterisk are available in the [enterprise version](https://www.ag-grid.com/license-pricing.php?utm_source=ag-grid-angular-readme&utm_medium=repository&utm_campaign=github) only.
48
49Check out [developers documentation](https://www.ag-grid.com/documentation-main/documentation.php?utm_source=ag-grid-angular-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-angular-readme&utm_medium=repository&utm_campaign=github) for tutorials and feature demos.
50
51Usage Overview
52--------------
53
54Use the setup instructions below or go through [a 5-minute-quickstart guide](https://www.ag-grid.com/react-grid?utm_source=ag-grid-angular-readme&utm_medium=repository&utm_campaign=github).
55
56#### Install dependencies
57
58 $ npm i --save ag-grid-community ag-grid-angular
59
60#### Import `AgGridModule` and add it to the `App` module
61
62 import { AgGridModule } from 'ag-grid-angular';
63
64 @NgModule({
65 declarations: [AppComponent],
66 imports: [BrowserModule, AgGridModule.withComponents([])],
67 providers: [],
68 bootstrap: [AppComponent]
69 })
70 export class AppModule {}
71
72### Import styles in `styles.css`
73
74 @import "~ag-grid-community/dist/styles/ag-grid.css";
75 @import "~ag-grid-community/dist/styles/ag-theme-balham.css";
76
77### Set the grid's configuration in a parent component
78
79 export class AppComponent {
80 title = 'app';
81
82 columnDefs = [
83 {headerName: 'Make', field: 'make' },
84 {headerName: 'Model', field: 'model' },
85 {headerName: 'Price', field: 'price'}
86 ];
87
88 rowData = [
89 { make: 'Toyota', model: 'Celica', price: 35000 },
90 { make: 'Ford', model: 'Mondeo', price: 32000 },
91 { make: 'Porsche', model: 'Boxter', price: 72000 }
92 ];
93 }
94
95### Render the grid as the `ag-grid-angular` child component
96
97 <ag-grid-angular
98 style="width: 500px; height: 500px;"
99 class="ag-theme-balham"
100 [rowData]="rowData"
101 [columnDefs]="columnDefs">
102 </ag-grid-angular>
103
104Issue Reporting
105----------
106If you have found a bug, please report them at this repository `issues` section. If you're using Enterprise version please use the private ticketing system to do that. For more information on support check out our [dedicated page](https://www.ag-grid.com/support.php?utm_source=ag-grid-angular-readme&utm_medium=repository&utm_campaign=github).
107
108
109Asking Questions
110-------------
111
112Look 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. Do not use GitHub issues to ask questions.
113
114Contributing
115------------
116AG Grid is developed by a team of co-located developers in London. If you want to join the team check out our [jobs listing](https://www.ag-grid.com/ag-grid-jobs-board?utm_source=ag-grid-angular-readme&utm_medium=repository&utm_campaign=github) or send your application to info@ag-grid.com.
117
118License
119------------------
120This project is licensed under the MIT license. See the [LICENSE file](./LICENSE.txt) for more info.