angular-material-dynamic-table
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

html:

<kmr-dynamic-table
  [data]="transactionTableData"
  [tableConfig]="tableConfig"
  [options]="tableOptions"
></kmr-dynamic-table>

ts:

import { TableOptions, TableCellConfig } from "angular-material-dynamic-table";

tableConfig: TableCellConfig[] = [ { headerTitle: "", fieldName: "Date" }, { headerTitle: "", fieldName: "EnterTime" }, { headerTitle: "" , fieldName: "ExitTime" }, { headerTitle: "", fieldName: "Status" }, { headerTitle: "", fieldName: "operation", customComponent: "edit-delete" } ];

tableOptions: TableOptions = { pagination: true, hasFilter: true };

transactionTableData = [ { Date: "1398/11/28", EnterTime: "09:09", ExitTime: "13:00", Status: "" }, { Date: "1398/11/28", EnterTime: "13:50", ExitTime: "17:09", Status: "" } ];

Readme

Keywords

none

Package Sidebar

Install

npm i angular-material-dynamic-table

Weekly Downloads

0

Version

1.0.5

License

none

Unpacked Size

443 kB

Total Files

62

Last publish

Collaborators

  • a-noire