0.0.4 • Published 4 months ago

ag-grid-plus v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

AgGridPlus

An ag-grid based package providing extra features built on top of ag-grid community edition to unlock some paid enterprise features

Unlocked features

  1. Dynamic row height with lazy loading data from backend (More features upcoming)

Getting started

Installation

$ npm install --save ag-grid-plus ag-grid-community ag-grid-angular

Add a placeholder to HTML

  <ag-grid-plus
    [deltaRows]="deltaRowData"
    [columnDefs]="columnDefs"
    [class]="'ag-theme-quartz'"
    (getRows)="getRowsAsync($event)"
    (sortChanged)="onSortChanged($event)"
    (onGridReady)="onGridReady($event)"
  >
  </ag-grid-plus>

Import the grid component and styles in global styles file

import { AgGridPlusComponent } from 'ag-grid-plus';

import 'ag-grid-community/styles//ag-grid.css';
import 'ag-grid-community/styles//ag-theme-quartz.css';

Input parameters of AGGridPlusComponent

Input parameterInfo
colDefhttps://www.ag-grid.com/angular-data-grid/column-definitions/
rowHeightDefault row height in pixels.
deltaRowsPaginated data to append in the ag-grid
rowBufferThe number of rows rendered outside the viewable area the grid renders. Having a buffer means the grid will have rows ready to show as the user slowly scrolls vertically. (Default: 10)
limitPagination size (Default: 100 )
hasReachedEndOfDataBoolean input to inform the component to not request for further data as we have reached the end
clazzAg grid theme to be used

Output parameters of AGGridPlusComponent

@Output parameterInfo
getRowsEmits when user scrolls to the bottom and hence grid requests for more data
sortChangedEmits when user clicks on any sortable header. Returns SortModelItem object
onGridReadyEmits when grid becomes ready. Returns GridApi object

Asking Questions

Feel free to ask any questions using Github Issues

Github Repository

https://github.com/LakhveerChahal/ag-grid-plus-workspace/issues

0.0.3

4 months ago

0.0.4

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago