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-polymer
Advanced tools
Use Ag-grid.com as Polymer Element.
Install via npm:
npm install -g ag-grid-polymer
You'll get the following files in node_modules/ag-grid-polymer/src
:
AgGridPolymer.ts
the base class for own/custom grid configurationsbehaviours
the folder contains behaviour classes to compliment grid configuration classes via @behaviour decoratorsample
the folder contains example of simple usage of the AgGridPolymer class, to build your own grid elementTo Install all needed dependencies:
cd .\ag-grid-polymer
npm install
'src/sample' folder contains an example of the basic Grid element usage pattern.
'src/sample/index.html' contains:
<html>
<head>
<title>Ag-Grid Polymer Element Sample</title>
<!-- Polymer stuff -->
<script src="../../node_modules/webcomponentsjs/lite.js"></script>
<link rel="import" href="../../node_modules/Polymer/polymer.html">
<link rel="import" href="../../node_modules/polymer-ts/polymer-ts.min.html">
<!-- Custom Polymer Grid Elements -->
<link rel="import" href="../../lib/sample/grid-components.html">
</head>
<body>
<!-- Example of a Command Line interfaced Grid configuration,
Use command line in the Grid header to type some text commands
feel free to Select rows, show/hide columns via Keyboard commands, easy fast elegant (: -->
<my-cli-grid
theme="blue"
styles="../../node_modules/ag-grid/dist/styles/"
enterprise="true"
debug="false"
rowHeight="22"
rowSelection="multiple"
enableColResize
suppressRowClickSelection>
</my-cli-grid>
</body>
</html>
Just throw this index.html in your web browser and try to type some text commands in the grid header command line like "hide column ..., select all rows, select even rows, etc."
Example of the grid configuration provided in the (src/sample/my-grid.ts
) file:
/// <reference path="./../../node_modules/polymer-ts/polymer-ts.d.ts" />
import {AgGridPolymer,
EnterpriseBehaviour,
ThemeBehaviour,
CLIBehaviour,
CLIShowHideColumnsBehaviour,
CLIRowSelectionBehaviour} from 'ag-grid-polymer/main';
import {GridOptions} from 'ag-grid/main';
import {RefData} from './dummyData';
@behavior(EnterpriseBehaviour)
@behavior(ThemeBehaviour)
@behavior(CLIBehaviour)
@behavior(CLIShowHideColumnsBehaviour)
@behavior(CLIRowSelectionBehaviour)
@component("my-cli-grid")
class myGrid extends AgGridPolymer {
protected createOptions():GridOptions {
let result:GridOptions = super.createOptions();
result.rowData = RefData.FundData;
return result;
}
public getColumnDefinitions():any[] {
return [
{
headerName: '#',
width: 30,
checkboxSelection: true,
suppressSorting: true,
suppressSizeToFit: true,
suppressMenu: true,
pinned: true
},
{
headerName: '',
field: "flagged"
},
{
headerName: 'Notification Date',
field: "notificationDate"
},
{
headerName: 'SSI ID',
field: "ssiId"
},
{
headerName: 'MP ID',
field: "mpId"
}, {
headerName: 'Bulk ID',
field: "bulkId"
},
{
headerName: 'Parent',
field: "parent"
},
{
headerName: 'LegalEntity',
field: "legalEntity"
},
{
headerName: 'Product',
field: "product"
},
{
headerName: 'CCY',
field: "ccy"
},
{
headerName: 'Effective Date',
field: "effectiveDate"
},
{
headerName: 'Intermediary Bank',
field: "intermediaryBank"
},
{
headerName: 'Beneficiary Bank',
field: "beneficiaryBank"
},
{
headerName: 'Final Beneficiary Bank',
field: "finalBeneficiaryBank"
},
];
}
}
myGrid.register();
FAQs
AG Grid Polymer 3 Web Component
The npm package ag-grid-polymer receives a total of 6 weekly downloads. As such, ag-grid-polymer popularity was classified as not popular.
We found that ag-grid-polymer 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.