Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
angular-datatable
Advanced tools
An Angular 2 datatable, with pagination, sorting, expandable rows etc.
A simple Angular 2 data table, with built-in solutions for features including:
The component can be used not just with local data, but remote resources too: for example if the sorting and paging happen in the database.
The templates use bootstrap 4 CSS class names, so the component requires a bootstrap .css file to be present in the application using it.
The templates use Font Awesome CSS class names, so the component requires Font Awesome to be present in the application using it.
npm install angular-datatable --save
To make use of custom sort functionality, one must add a [customSort]
binding to the data-table (if necessary for the default sort) or to the data-column (if necessary to sort that column). One must still specify the [sortBy]
binding and specify the primary property of the bound data set that is being sorted, as this is fundamental to maintaining sort order (ASC or DESC).
The [customSort]
binding must bind to a function that implements the function signature defined by DataTableSortCallback
. This function is the same as any standard JS Array.sort() callback, and in fact is actually passed to array.sort() when sorting occurs.
If custom sort is not required, then only the [sortBy]
binding is necessary.
MIT License
FAQs
An Angular 2 datatable, with pagination, sorting, expandable rows etc.
We found that angular-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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.