@ag-grid-community/react is a powerful data grid component for React applications. It provides a wide range of features for displaying, editing, and managing data in a tabular format. The package is highly customizable and supports various functionalities such as sorting, filtering, pagination, and more.
What are @ag-grid-community/react's main functionalities?
Basic Grid Setup
This code demonstrates a basic setup of the AG Grid in a React application. It includes column definitions and row data to display a simple table.
This example shows how to enable sorting and filtering on the columns of the AG Grid. The `sortable` and `filter` properties are added to the column definitions.
This code demonstrates how to enable pagination in the AG Grid. The `pagination` property is set to true, and `paginationPageSize` is set to define the number of rows per page.
react-table is a lightweight, fast, and extendable data grid built for React. It focuses on providing a simple and flexible API for building tables. Compared to @ag-grid-community/react, react-table is more lightweight but may require more custom implementation for advanced features.
material-table is a data table component built on Material-UI. It provides a rich set of features out of the box, including sorting, filtering, and pagination. It integrates well with Material-UI's design system, making it a good choice for applications already using Material-UI. Compared to @ag-grid-community/react, material-table offers a more opinionated design and tighter integration with Material-UI.
handsontable is a JavaScript/HTML5 data grid component with a spreadsheet-like interface. It offers a wide range of features, including data validation, sorting, filtering, and more. Compared to @ag-grid-community/react, handsontable provides a more Excel-like experience and is suitable for applications that require complex data manipulation.
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:
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:
Menu Item Component: To customise the menu items shown in the Column and Context Menus.
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 tocellRenderer: CountryCellRenderer, // Your custom cell componentfilter: CountryFilter, // Your custom filter component
},
],
};
Themes
AG Grid has 4 themes, each available in light & dark modes. We also supply each theme with an auto mode that can toggle the theme based on the users' system preferences:
Quartz
Material
Alpine
Balham
To apply a theme, add the relevant CSS Class to the Data Grid container. For example, to apply the Quartz theme, use the CSS class ag-theme-quartz:
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:
🤝 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.
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 send your application to info@ag-grid.com.
⚠️ License
ag-grid-community is licensed under the MIT license.
If you've made it this far, you may be interested in our latest project: AG Charts - The best React 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.
Follow us to keep up to date with all the latest news from AG Grid:
We found that @ag-grid-community/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 0 open source maintainers collaborating on the project.
Package last updated on 07 Oct 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."