Git Product home page Git Product logo

ag-grid-angular's Introduction

JavaScript Data Grid | JavaScript 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 JavaScript Data Grid. It delivers outstanding performance, has no third-party dependencies and comes with support for React Logo React, Angular Logo Angular and Vue Logo Vue.


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
Live Demoย โ€ขย Source Code

๐Ÿ“ฆ Inventory Demo

Inventory data example to view and manage products:

Finance
Live Demoย โ€ขย Source Code

๐Ÿง‘โ€๐Ÿ’ผ HR Demo

HR data example showing hierarchical employee data:

Finance
Live Demoย โ€ขย Source Code

โšก๏ธ Quick Start

AG Grid is easy to set up - all you need to do is provide your data and define your column structure. Read on for vanilla JavaScript installation instructions, or refer to our framework-specific guides forReact Logo React,Angular Logo Angular andVue Logo Vue.

Installation

$ npm install --save ag-grid-community

Setup

1. Provide a Container

Load the AG Grid library and create a blank container div:

<html lang="en">
    <head>
        <!-- Includes all JS & CSS for the JavaScript Data Grid -->
        <script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
    </head>
    <body>
        <!-- Your Data Grid container -->
        <div id="myGrid"></div>
    </body>
</html>

2. Instantiating the JavaScript Data Grid

Create the Data Grid inside of your container div using createGrid.

// Grid Options: Contains all of the Data Grid configurations
const gridOptions = {};

// Your Javascript code to create the Data Grid
const myGridElement = document.querySelector('#myGrid');
agGrid.createGrid(myGridElement, gridOptions);

3. Define Rows and Columns

// Grid Options: Contains all of the Data Grid configurations
const gridOptions = {
    // 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.
    columnDefs: [{ field: 'make' }, { field: 'model' }, { field: 'price' }, { field: 'electric' }],
};

4. Styling the JavaScript Data Grid

Add the ag-theme-quartz CSS class to your Data Grid container div to apply the Data Grid's theme.

<!-- Your Data Grid container -->
<div id="myGrid" class="ag-theme-quartz" style="height: 500px"></div>

โ„น๏ธ 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 Packages Modules
Create React App (CRA) React Logo Packages Modules
Vite React Logo Packages Modules
Vite - TypeScript TypeScript Logo Packages Modules
Webpack 5 - TypeScript TypeScript Logo Packages Modules
Webpack 5 - JavaScript JavaScript Logo Packages Modules
Angular CLI Angular Logo Packages Modules
Nuxt Vue3 Logo Packages Modules
Vite Vue3 Logo Packages Modules

๐Ÿ› ๏ธ 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. We also supply each theme with an auto mode that can toggle the theme based on the users' system preferences:

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

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:

<div
  id="myGrid"
  style="height: 150px; width: 600px"
  class="ag-theme-quartz"
></div>

Custom Themes

All AG Grid themes can be customised using CSS variables, 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 [email protected].

โš ๏ธ 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 JavaScript 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 JavaScript 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

ag-grid-angular's People

Contributors

abdulhaq-e avatar ceolter avatar herobart avatar makinggoodsoftware avatar petyosi avatar rmc-software avatar seanlandsman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.