
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
a4-pivot-table
Advanced tools
Angular 7 Pivot Table
npm install a4-pivot-table
PivotTableModule
to imports.
...
import { PivotTableModule } from 'a4-pivot-table';
...
@NgModule({
declarations: [
AppComponent
],
imports: [
...,
PivotTableModule,
...
],
...
})
<pivot-table [data]="data"
[x]="x" [y]="y" [renderCell]="renderCell">
</pivot-table>
<pivot-table [data]="[{a: 'A1', b:'B1', c:'C3', d:1}, {a: 'A1', b:'B2', c:'C3', d:2}, {a: 'A2', b:'B2', c:'C2', d:3}, {a: 'A3', b:'B2', c:'C2', d:4}]"
[x]="['b', 'c']" [y]="['a']" [renderCell]="renderCell">
</pivot-table>
interface IData {
a: string;
b: string;
c: string;
d: number;
}
@Component({
...
...
})
export class YourComponent {
...
data: IData[] = [
{a: 'A1', b:'B1', c:'C3', d:1},
{a: 'A1', b:'B2', c:'C3', d:2},
{a: 'A2', b:'B2', c:'C2', d:3},
{a: 'A3', b:'B2', c:'C2', d:4}
];
...
...
renderCell(x: IData[]): string {
return x.reduce((r, c) => r + c['d'], 0);
}
...
...
}
FAQs
Angular 7 Pivot Table
We found that a4-pivot-table 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.