@petkit/ngx-table-descartes
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @petkit/ngx-table-descartes

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

153 kB

Total Files

30

Last publish

Collaborators

  • lovesora
  • qmy777