
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.
ng2-editable-table
Advanced tools
Simple table extension with sorting, filtering, paging... for Angular2 apps
Follow me at twitter to be notified about new releases.
http://valor-software.github.io/ng2-table/
npm i ng2-table --save
Alternatively, you can download it in a ZIP file.
page (number) - the default page after the table component loading
itemsPerPage (number) - number of the displaying items (rows) on a page
maxSize (number) - number of the displaying pages before ...
numPages (number) - total number of the pages
length (number) - total number of the items after filtering (of it's chosen)
config (?any) - config for setup all plugins (filtering, sorting, paging):
paging (?boolean) - - switch on the paging pluginsorting (?any) - switch on the sorting plugin
columns (Array<any>) - only list of the columns for sortingfiltering (?any) - switch on the filtering plugin
filterString (string) - the default value for filtercolumnName (string) - the property name in raw datarows (?Array<any>) - only list of the rows which should be displayed
columns (?Array<any>) - config for columns (+ sorting settings if it's needed)
title (string) - the title of column headername (string) - the property name in datasort (?string|boolean) - config for columns (+ sorting settings if it's needed), sorting is switched on by default for each columntable-changed - onclick event handlerThe responsibility of the filtering issue falls on user. You should choose on which columns the filter would be applied. You could add any number of different filters. Filter string - it's a string for matching values in raw data. Column name refers to the property name in raw data. The rest logic you could organize by yourself (the order of filters, data formats, etc). Even you could use filter for list of data columns.
Data sorting could be in 3 modes: asc, desc and without sorting data (as it comes from backend or somewhere else). If you want to switch off the sorting for some of the columns then you should set it forcibly in columns config (set property sort to false value for each column you want)
Pagination could be used from ng2-bootstrap - pagination component. When the page is changed, the pagination component will emit event change-table with an object {page, itemsPerPage}. Then you can easily subscribe on it and request corresponding raw data.
Please follow this guidelines when reporting bugs and feature requests:
Thanks for understanding!
The MIT License (see the LICENSE file for the full text)
FAQs
angular2 table components
The npm package ng2-editable-table receives a total of 1 weekly downloads. As such, ng2-editable-table popularity was classified as not popular.
We found that ng2-editable-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

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.