How to use the ngx-easy-table.API.setRowClass function in ngx-easy-table

To help you get started, we’ve selected a few ngx-easy-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ssuperczynski / ngx-easy-table / src / app / demo / api / api.component.ts View on Github external
setRowClasses(): void {
    this.table.apiEvent({
      type: API.setRowClass,
      value: [
        {
          row: 1,
          className: 'gray',
        },
        {
          row: 2,
          className: 'pink',
        },
        {
          row: 4,
          className: 'yellow',
        },
      ],
    });
  }
github ssuperczynski / ngx-easy-table / src / app / demo / bootstrap / bootstrap.component.ts View on Github external
setRowClass(row: number, className: string): void {
    this.table.apiEvent({
      type: API.setRowClass,
      value: { row, className },
    });
  }
}