npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stackline/angular-data-table-component

v22.1.0

Published

An Angular 22 data table with sorting, filtering, pagination, selection, grouping, pinning, virtualization, templates, and a headless controller.

Readme

@stackline/angular-data-table-component

An Angular 22 data table for application screens that need sorting, filtering, pagination, selection, grouping, pinning, virtualization, templates, or a headless controller without adopting an entire UI framework.

npm downloads CI license

Live documentation | npm | Issues | Security

Install

npm install @stackline/angular-data-table-component

The current release supports Angular 22:

@angular/common  >=22.0.0 <23.0.0
@angular/core    >=22.0.0 <23.0.0

Angular applications should keep all Angular framework packages on the same patch version.

Quick Start

Import the NgModule:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DataTableModule } from '@stackline/angular-data-table-component';

@NgModule({
  imports: [BrowserModule, DataTableModule]
})
export class AppModule {}

Define columns and rows:

import { DataTableColumn } from '@stackline/angular-data-table-component';

columns: DataTableColumn[] = [
  { id: 'name', name: 'Name', selector: 'name', sortable: true },
  { id: 'team', name: 'Team', selector: 'team' },
  { id: 'score', name: 'Score', selector: 'score', sortable: true, right: true }
];

rows = [
  { id: 1, name: 'Ada', team: 'Platform', score: 98 },
  { id: 2, name: 'Linus', team: 'Runtime', score: 94 }
];

Render the table:

<stackline-data-table
  title="Team scores"
  ariaLabel="Team scores"
  [columns]="columns"
  [data]="rows"
  [pagination]="true"
  [selectableRows]="true"
  [highlightOnHover]="true"
  (selectedRowsChange)="selection = $event">
</stackline-data-table>

Capabilities

  • Client and server sorting, filtering, and pagination
  • Multi-row, single-row, disabled-row, and visible-page selection
  • Global and per-column filters
  • Column visibility, ordering, sizing, groups, and sticky pinning
  • Row grouping, top/bottom pinning, expansion, and conditional styles
  • Virtual row windows for large data sets
  • Custom cells and expandable content with Angular templates
  • Keyboard activation and grid-oriented ARIA attributes
  • Dark and default themes with no external stylesheet import
  • View-independent HeadlessDataTableController for custom Angular markup

Every feature has a runnable example in the Angular 22 documentation.

Templates

<ng-template #scoreCell let-row let-value="value">
  <strong [class.high-score]="value >= 90">{{ value }}</strong>
</ng-template>

<stackline-data-table [columns]="templateColumns" [data]="rows">
</stackline-data-table>
import { AfterViewInit, TemplateRef, ViewChild } from '@angular/core';
import { DataTableColumn } from '@stackline/angular-data-table-component';

@ViewChild('scoreCell') scoreCell!: TemplateRef<unknown>;

templateColumns: DataTableColumn[] = [];

ngAfterViewInit() {
  this.templateColumns = [
    { id: 'name', name: 'Name', selector: 'name' },
    { id: 'score', name: 'Score', selector: 'score', cellTemplate: this.scoreCell }
  ];
}

Headless Usage

Use the same data behavior with custom HTML:

import { createDataTableController } from '@stackline/angular-data-table-component';

const table = createDataTableController({
  columns,
  data: rows,
  pagination: true,
  perPage: 25,
  selectableRows: true
});

table.setGlobalFilter('platform');
table.toggleSort(columns[0]);

console.log(table.displayedRows);
console.log(table.state);

Main Inputs

| Input | Purpose | | --- | --- | | columns, data, keyField | Table structure, records, and stable row identity | | pagination, paginationServer, paginationPerPage | Client or controlled pagination | | sortServer, manualSorting, manualFiltering, manualPagination | Controlled data operations | | globalFilter, columnFilters | Text and column-level filtering | | selectableRows, selectableRowsSingle, selectableRowsVisibleOnly | Selection modes | | expandableRows, expandableRowTemplate | Expandable detail rows | | columnVisibility, columnOrder, columnPinning, columnSizing | Column controls | | groupBy, grouping, rowPinning | Grouping and pinned rows | | virtualRows, virtualStartIndex, virtualRowCount | Virtual row window | | theme, dense, striped, responsive | Presentation |

Main Outputs

sortChange, selectedRowsChange, pageChange, rowsPerPageChange, rowClicked, rowDoubleClicked, rowExpandToggled, globalFilterChange, columnFiltersChange, columnVisibilityChange, columnOrderChange, groupingChange, and tableStateChange.

Angular Compatibility

Package majors follow Angular majors. Install an exact historical major when maintaining an older Angular application:

| Angular | Package | | --- | --- | | 22 | @stackline/angular-data-table-component@22 | | 21 | @stackline/angular-data-table-component@21 | | 20 | @stackline/angular-data-table-component@20 | | 19 | @stackline/angular-data-table-component@19 | | 18 | @stackline/angular-data-table-component@18 | | 17 | @stackline/angular-data-table-component@17 | | 16 | @stackline/angular-data-table-component@16 | | 15 | @stackline/angular-data-table-component@15 | | 4-14 | Matching package major | | 2 | @stackline/angular-data-table-component@2 |

Historical lines remain available on npm. Security and maintenance work is focused on the current Angular line unless a separate backport is announced.

Development

Use Node 22.22.3 or newer in the Node 22 line:

npm ci
npm run verify

verify builds the Angular package, runs behavioral and package-contract tests, validates clean Angular 22 consumers, and builds the live documentation.

Security

Please report vulnerabilities privately as described in SECURITY.md. Do not include sensitive details in a public issue.

License

MIT Copyright (c) 2026 Alexandro Marques.