
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
ngx-table-grid
Advanced tools
`ngx-table-grid` is a fully-featured and highly customizable data grid for angular.
ngx-table-grid is a fully-featured and highly customizable data grid for angular.
$ npm install --save ngx-table-grid
<ngx-table-grid
[tableConfig]="tableConfig"
[rowData]="data"
color="primary"
[multiselect]="true"
[withCheckBox]="true"
(rowClicked)="click($event)"
(rowDoubleClicked)="click($event)"
(selectedRows)="click($event)"
></ngx-table-grid>
import { NgxTableGridModule } from 'ngx-table-grid';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxTableGridModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Add the following line to your global.scss or style.scss in your project.
@import '~ngx-table-grid/themes/ngx-table-grid.theme';
tableConfig = [
{ column: 'Name', columnVal: 'name' },
{ column: 'Mobile', columnVal: 'mobile' },
{ column: 'DOB', columnVal: (row: any) => { return row.dob.value } },
{ column: 'Role', columnVal: 'role' },
{ column: 'Age', columnVal: 'dob', conversion: this.get_age },
{ column: 'Action', actions: [
{ if: true, // condition wether it would be visible or not
title: 'Delete',
icon: 'fa fa-trash', // `fa fa-trash` will change like <i class="fa fa-trash"></i>
handler: (row: any) => {
console.log(row) // Write any function here
} }
] }
];
get_age(dob: any) {
return (new Date().getYear()) - (new Date(dob)).getYear();
}
rowData = [
{
name: "John",
mobile: "9876543210",
dob: {
format: 'yyyy-mm-dd',
value: '1999-09-09'
},
role: "user"
},
]
tableConfig <Array<Object>> To declare the configuration of table.rowData <Array<Object>> Data of your table.color <string> Supported values are primary, secondary, success, danger, warning, info, light, dark and mutedmultiselect<boolean> Wether you want to select multiple rows or not. Defaults to false.withCheckBox <boolean> Wether you want to show checkbox or not. Defaults to false.| Name | Description |
|---|---|
| selectedRows | Event will trigger when the row is clicked. This will return all the selected rows in grid |
| rowClicked | Event will trigger when the row is clicked. This will return the select row |
| rowDoubleClicked | Event will trigger when the row is clicked twice. This will return the select row |
FAQs
`ngx-table-grid` is a fully-featured and highly customizable data grid for angular.
The npm package ngx-table-grid receives a total of 2 weekly downloads. As such, ngx-table-grid popularity was classified as not popular.
We found that ngx-table-grid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.