Home

Awesome

@guiexpert/angular-table

This is the angular component of the GuiExpert Table Project.

Become a master at creating web applications with large tables

This is the UI-agnostic table component for your next web app. 😊

<img src="https://raw.githubusercontent.com/guiexperttable/website-astro/main/src/assets/screens/heatmap.png" width="50%">

Version compatibility

Angular@guiexpert/angular-table
19.x.x^19.0.0
18.x.x^18.0.0
17.x.x^17.0.0
16.x.x^16.0.7
15.x.x^15.0.2
14.x.x^14.0.3

Features

Links

Get Started

Add the following two NPM packages to your existing angular project (run this in your project root directory):

npm install --save @guiexpert/table @guiexpert/angular-table

Import the (standalone) TableComponent in your angular module:

@NgModule({
    imports: [
      CommonModule,
      TableComponent, ...

Add guiexpert-table component to a template:

<guiexpert-table
  [tableModel]="tableModel"
  [tableOptions]="tableOptions"
  class="table-div"
></guiexpert-table>

Add two properties (tableModel and tableOptions) to the component:

import {
  TableFactory,
  TableModelIf,
  TableOptions,
  TableOptionsIf
} from "@guiexpert/table";

tableModel: TableModelIf = TableFactory.createTableModel({
  headerData: [
    ['Header 1', 'Header 2']
  ],
  bodyData: [
    ['Text 1a', 'Text 2a'],
    ['Text 1b', 'Text 2b'],
  ]
});

tableOptions = {
  ...new TableOptions(),
  hoverColumnVisible: false,
  defaultRowHeights: {
  header: 40,
  body: 34,
  footer: 0
}

There are numerous possibilities to create table models. Please refer to the Documentation for further information or the Demo section for examples.