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

@angular-generic-table/core

v5.1.2

Published

A lightweight, configurable table component for Angular. It renders native HTML tables and supports sorting, pagination, search with highlighting, row selection, keyboard navigation, custom cell/header templates and components, and footer calculations.

Readme

Angular Generic Table

A lightweight, configurable table component for Angular. It renders native HTML tables and supports sorting, pagination, search with highlighting, row selection, keyboard navigation, custom cell/header templates and components, and footer calculations.

Built for modern Angular — standalone components, signals, and OnPush change detection throughout. Compatible with Angular 17 through 22.

Install

npm install @angular-generic-table/core --save

Usage

CoreComponent is a standalone component (selector: angular-generic-table). Import it directly into the component where you need it:

import { Component } from '@angular/core';
import { CoreComponent, TableConfig } from '@angular-generic-table/core';

interface Person {
  firstName: string;
  lastName: string;
  favoriteFood: string;
}

@Component({
  selector: 'app-people',
  imports: [CoreComponent],
  template: `<angular-generic-table [data]="data" [config]="config" />`,
})
export class PeopleComponent {
  data: Array<Person> = [
    { firstName: 'Peter', lastName: 'Parker', favoriteFood: 'Pasta' },
    { firstName: 'Mary Jane', lastName: 'Watson', favoriteFood: 'Pizza' },
  ];

  config: TableConfig<Person> = {
    class: 'table table-striped table-bordered',
    columns: {
      firstName: {},
      lastName: {},
      favoriteFood: {},
    },
  };
}

Using NgModules? A backward-compatibility GenericTableCoreModule is still exported. Add it to a module's imports (e.g. a shared module) to use the table in NgModule-based apps. New apps should prefer importing the standalone CoreComponent directly.

Import styling

We recommend setting up your Angular project to use scss (SASS) for css preprocessing.

Once configured to use scss, include the library styles in your main styles file — typically styles.scss at the root of the src folder.

Add scss

{project}/src/styles.scss

// import base styles from @angular-generic-table/core
@use '@angular-generic-table/core/scss' as generic-table-styles;
@include generic-table-styles.styles(); // all styles

// @include generic-table-styles.search-style();     // search (highlight) style
// @include generic-table-styles.mobile-style();      // mobile layout style
// @include generic-table-styles.pagination-style();  // pagination styles

Note: The webpack-era ~ import prefix is no longer required (or supported) with Angular's current build system — import the package path directly as shown above.

Override scss variables

It's possible to override the scss variables used by generic table by passing them when importing the scss. {project}/src/styles.scss

// import base styles from @angular-generic-table/core and override scss variables
@use '@angular-generic-table/core/scss' as generic-table-styles with (
    $highlight-background-color: purple,
    $mobile-style-max-width: 375px
);
@include generic-table-styles.styles();

SCSS Variables

|Name|Default value| |:--|:--| |$highlight-background-color: | #ffdd00; | |$mobile-style-selector: | 'table.table-mobile'; | |$mobile-style-max-width: | 576px; | |$mobile-style-header-font-weight: | 500; | |$mobile-style-header-background-color: | #fff; | |$mobile-style-button-selector: | '.btn-sm'; | |$mobile-style-border-bottom: | solid 1px #dedede; | |$mobile-style-button-font-size: | 1rem; | |$mobile-style-button-padding: | 0.5625rem 1rem; | |$pagination-ellipsis-content: | '...'; | |$pagination-active-color: | #000; | |$pagination-justify-content: | center; |

Examples

The repo ships a docs app with runnable examples (simple, sorting, pagination, custom templates, mobile layout, transpose, footers, and more). Run it locally with ng serve docs, or browse the source under projects/docs/src/app/examples.

Have other needs?

Found a bug or have a feature request? Create an issue over at github.

Sponsored by

Angular Generic Table is sponsored by Swimbird - Portfolio Management.