Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@petkit/ngx-table-descartes

petkit-io11MIT1.0.4TypeScript support: included

Angular descartes table component

angular, table, descartes

readme

ngx-table-descartes

Angular descartes table component

example

Installation

npm install --save @petkit/ngx-table-descartes

Usage

Import Module

import {
  TableDescartesModule,
} from '@petkit/ngx-table-descartes';

@NgModule({
  imports: [
    TableDescartesModule,
  ],
}

Simple

<ngx-table-descartes [data]="data"></ngx-table-descartes>
import { Component, OnInit } from '@angular/core';
// mock data
import Mock from 'mockjs';

@Component({
  selector: 'ngx-table-descartes-simple',
  templateUrl: './table-descartes-simple.component.html',
  styleUrls: ['./table-descartes-simple.component.scss']
})
export class TableDescartesSimpleComponent implements OnInit {
  data: {[key: string]: string}[] = Mock.mock({
    'data|10-20': [{
      'type|1': ['typeA', 'typeB', 'typeC'],
      'size|1': ['big', 'middle', 'small'],
      'name': '@name()',
    }]
  }).data;

  constructor() { }

  ngOnInit() {
  }

}

License

MIT

changelog

1.0.5 (2018-10-17)

1.0.4 (2018-10-16)

Features

  • descartes: add cell key (9b1cb85)

1.0.3 (2018-10-16)

Features

  • descartes: add table content (5420840)
  • descartes: add table display columns (70cb5d3)

1.0.2 (2018-10-10)

1.0.1 (2018-10-10)

Features

  • descartes: finish first version (e6f2b38)