Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ag-grid-angular

Package Overview
Dependencies
Maintainers
0
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-grid-angular

<source media="(prefers-color-scheme: dark)" srcset="https://github.com/ag-grid/ag-grid/blob/latest/documentation/ag-grid-docs/public/images/ag-logos/svg-logos/AG-Grid-Logo_Dark-Theme.svg?raw=true"/> <source

  • 32.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
162K
decreased by-13.31%
Maintainers
0
Weekly downloads
 
Created

What is ag-grid-angular?

ag-grid-angular is a powerful data grid component for Angular applications. It provides a wide range of features for displaying, editing, and managing data in a tabular format. It is highly customizable and supports large datasets, making it suitable for enterprise applications.

What are ag-grid-angular's main functionalities?

Basic Grid Setup

This code sets up a basic ag-Grid in an Angular component. The `rowData` and `columnDefs` properties are used to define the data and columns of the grid.

<ag-grid-angular
  style="width: 100%; height: 350px;"
  class="ag-theme-alpine"
  [rowData]="rowData"
  [columnDefs]="columnDefs">
</ag-grid-angular>

Sorting and Filtering

This code enables sorting and filtering on all columns by setting the `sortable` and `filter` properties in the `defaultColDef` object.

<ag-grid-angular
  style="width: 100%; height: 350px;"
  class="ag-theme-alpine"
  [rowData]="rowData"
  [columnDefs]="columnDefs"
  [defaultColDef]="{ sortable: true, filter: true }">
</ag-grid-angular>

Row Selection

This code enables multiple row selection in the grid by setting the `rowSelection` property to `multiple`.

<ag-grid-angular
  style="width: 100%; height: 350px;"
  class="ag-theme-alpine"
  [rowData]="rowData"
  [columnDefs]="columnDefs"
  rowSelection="multiple">
</ag-grid-angular>

Cell Editing

This code enables cell editing for all columns by setting the `editable` property in the `defaultColDef` object.

<ag-grid-angular
  style="width: 100%; height: 350px;"
  class="ag-theme-alpine"
  [rowData]="rowData"
  [columnDefs]="columnDefs"
  [defaultColDef]="{ editable: true }">
</ag-grid-angular>

Pagination

This code enables pagination in the grid and sets the page size to 10 rows per page by using the `pagination` and `paginationPageSize` properties.

<ag-grid-angular
  style="width: 100%; height: 350px;"
  class="ag-theme-alpine"
  [rowData]="rowData"
  [columnDefs]="columnDefs"
  pagination="true"
  paginationPageSize="10">
</ag-grid-angular>

Other packages similar to ag-grid-angular

FAQs

Package last updated on 13 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc