
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A collection of components/utilities designed for data-intensive tables.
This library is currently under the development. API may still change! Please feel free to open issues not only for bug reports but also for ideas, comments, and questions, a.k.a. support requests. We would love to hear your feedback.
There are several key characteristics of the library:
Levels of abstraction This library provides components with a varying level of abstraction. The highest abstraction gives you the most comfort. In the case that you need more flexibility, you can switch to lower API. If that is not enough, you access even lower-level API.
Convention over configuration Despite many inputs and configuration options, you should be able to get running quickly because sensible defaults are preset or computed from the data. In some cases, even required inputs are automatically initialized for the subcomponents according to certain conventions.
You can install the package with yarn or npm.
yarn add ng2-pack
Then import the table module from 'ng2-pack'.
import { TableModule } from 'ng2-pack';
// import other modules (AppComponent, BrowserModule, ...)
@NgModule({
declarations: [AppComponent],
imports: [
TableModule,
// list other modules...
],
bootstrap: [AppComponent]
})
export class AppModule { }
We recommend that you install some CSS framework (e.g. Bootstrap) to enhance the style of the table.
We follow the philosophy "convention over configuration" to make it easier for you to get started. You can see it from the first code snippet.
NOTE: The examples in the demo app correspond to the following code snippets.
let rows = [{
name: 'Alan',
studies: [{
university: 'TUM',
// additional attributes (degree, specialization, …)
},
// more study subrows
],
address: {
country: 'cz',
// city, postal code …
},
},
// more rows…
]
rows input. Other attributes have intelligent defaults.<iw-table #table [rows]="rows"></iw-table>
<!-- HINT: You can display how the column configuration was initialized: <pre>{{ table.columnsConfig | json }} </pre> -->
<iw-table
[rows]="rows"
[columnsConfig]="columnsConfig"
[visibleColumns]="visibleColumns"
rowsSortingMode="external"
initialSortColumn="firstName"
(rowClick)="onAction($event)"
(sortColumnInit)="onAction($event)"
(sortColumn)="onAction($event)"
(addingColumn)="onAction($event)"
(addColumn)="onAction($event)"
(removeColumn)="onAction($event)"
(visibleColumnsChange)="onAction($event)"
>
</iw-table>
<iw-table [rows]="paginatedRows" [columnsConfig]="columnsConfig" rowsSortingMode="external">
</iw-table>
<iw-pagination #p [totalItems]="rows.length" (pageChange)="onPageChange(p.pageStart, p.pageEnd)" ></iw-pagination>
iwSortableItem), and we use application-specific component to modify the look of a specific cell.<iw-table
[bodyRowTemplate]="bodyRowTemplate"
[columnsConfig]="columnsConfig"
[rows]="rows"
#tableComponent>
<ng-template #bodyRowTemplate let-row let-i="index">
<tr iwSortableItem>
<ng-template ngFor let-columnName [ngForOf]="tableComponent.visibleColumns">
<td
[class]="isCustomField(columnName)"
*ngIf="!isCustomField(columnName)"
iw-td
[column]="tableComponent.columnsLookup[columnName]"
[row]="row">
</td>
<td *ngIf="isCustomField(columnName)">
<iw-studies-cell
[row]="row"
[column]="tableComponent.columnsLookup['studies']">
</iw-studies-cell>
</td>
</ng-template>
<td *ngIf="tableComponent.changeColumnVisibility"></td>
</tr>
</ng-template>
</iw-table>
MIT
FAQs
A collection of components/utilities designed for data-intensive tables.
The npm package ng2-pack receives a total of 10 weekly downloads. As such, ng2-pack popularity was classified as not popular.
We found that ng2-pack 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.