Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ag-grid-aurelia
Advanced tools
This project contains the Aurelia Component for use with ag-Grid.
Please refer to www.ag-grid.com for full documentation on ag-Grid and Aurelia integration. Also take a look a the provided examples at https://github.com/ceolter/ag-grid-aurelia-example.
In your main entry.
aurelia.use
.standardConfiguration()
.plugin('ag-grid-aurelia');
In your view model
import {GridOptions} from 'ag-grid';
export class MyGridPage {
public gridOptions:GridOptions;
constructor() {
this.gridOptions = <GridOptions>{};
this.gridOptions.rowData = [{id: 1, name: 'Shane'}, {id: 2, name: 'Sean'}];
}
public onGridReady(){
console.log('Grid is ready!!');
console.log('1st col field = ' + this.gridOptions.columnDefs[0].field);
}
public onIdClicked(row){
console.log('id clicked ' + row.id);
}
}
In your view template. Here we are adding columns using markup. ColumnDefs can be added from your view model if you wish.
<template>
<div style="width: 100%; height: 350px;">
<ag-grid-aurelia grid-options.bind="gridOptions" class="ag-material"
row-height.bind="48"
grid-ready.call="onGridReady()">
<ag-grid-column header-name="My Group Column">
<ag-grid-column header-name="Id" field="id">
<ag-cell-template>
<button md-button class="btn accent" click.delegate="params.context.onIdClicked(params.data)">${params.value}</button>
</ag-cell-template>
</ag-grid-column>
<ag-grid-column header-name="Name" field="name" >
</ag-grid-column>
</ag-grid-column>
</ag-grid-aurelia>
</div>
</template>
To build:
npm install
npm install gulp -g
npm install aurelia-framework
npm install ag-grid
(or: npm install aurelia-framework && npm install ag-grid)
npm run build
FAQs
ag-Grid Aurelia Component
The npm package ag-grid-aurelia receives a total of 127 weekly downloads. As such, ag-grid-aurelia popularity was classified as not popular.
We found that ag-grid-aurelia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.