
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ngx-smart-datatable
Advanced tools
A light weight Angular component used as a wrapper for DataTables.net, the smartest datatable.
A light weight Angular component used as a wrapper for DataTables.net, the smartest datatable in the world :fire:.
DataTables.net provides many extensions that you might or might not need for your datatable. Therefore, NgxSmartDatatable is lazily loaded meaning that only the extensions you need will be loaded once in the web page. This technique prevents any of the extension libraries from being bundled in your application.
npm install ngx-smart-datatable --save
<ngx-smart-datatable
...
[settings]="settings">
</ngx-smart-datatable>
Zero configuration
...
columns: any = [
{
data: 'id',
title: 'ID'
},
{
data: 'firstName',
title: 'First Name'
},
{
data: 'lastName',
title: 'Last Name'
},
{
data: 'email',
title: 'Email'
}
];
data = [
{
id: 1,
firstName: "Paul",
lastName: "Young",
email: "paul.young@gmail.com"
},
{
id: 2,
firstName: "John",
lastName: "Doe",
email: "john.doe@yahoo.com"
},
...
]
settings = {
columns: this.columns,
data: this.data,
...
// these are set to true by default
paging: false,
ordering: false,
info: false,
searching: false
}
| Attributes | Description |
|---|---|
[settings] | The settings applied to the table, which include the columns and data properties (required) |
(sortedOrder) | A sort event fired when data order is changed (asc or desc). Note: ordering property must be set to true in settings |
(selectedRows) | A select event fired when a row is selected. Note: select property must be set to true in settings |
(deselectedRows) | A deselect event fired when a row is deselected |
(reorderedRow) | A row-reorder event fired when rows are reordered. Note: rowReorder property must be set to true in settings |
(reorderedColumn) | A column-reorder event fired when columns are reordered. Note: colReorder property must be set to true in settings |
(selectedKeyCells) | A key event fired when a keyboard key is detected and pressed. Note: keys property must be set to true in settings |
(changedPage) | A page event fired when table's paging is updated |
(autoFilledCells) | An autoFill event triggered when an fill action is completed. Note: autoFill property must be set to true in settings |
(displayedResponsive) | A responsive-display event fired when the display of table is updated. Note: responsive property must be set to true in settings |
(loadedTable) | An event fired when the table is fully loaded |
(loadedjQuery) | An event fired when an instance of jQuery is loaded |
(emittedEvent): This is used to fire an event(s), which is not mentioned in the above table. The list of all available events can be found here. The name(s) of the event(s) would need to be added to eventNames array in the settings object.
Example of adding responsive-resize and column-reorder events:
<ngx-smart-datatable
...
(emittedEvent)="onEmitEvent($event)">
</ngx-smart-datatable>
settings = {
...
eventNames: ['responsive-resize', 'column-reorder']
}
...
onEmitEvent(event: any): void {
console.log('onEmitEvent: ', event);
if (event.e.type === 'responsive-resize') {
// do something
}
if (event.e.type === 'column-reorder') {
// do something
}
}
FAQs
A light weight Angular component used as a wrapper for DataTables.net, the smartest datatable.
The npm package ngx-smart-datatable receives a total of 3 weekly downloads. As such, ngx-smart-datatable popularity was classified as not popular.
We found that ngx-smart-datatable demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.