0.1.4 • Published 5 years ago
dime-table v0.1.4
Dime table Module
========================================
This library is an angular module providing reusable table component
Quick start
Install this package
npm install dime-tablePrepare the configuration
import {DimetableModule} from 'dime-table';Add the module to the imports
import:[
...
DimetableModule
...
]To get the dime table reusable you can add (you can send ur datatable configuration and also u need to sent ur data and apply condtional statement before calling the component)
<lib-dime-table *ngIf="data?.length>0" [data]="data" [kgDtOption]="kgDtOptions">
<thead>
...
</thead>
<tbody>
...
</tbody>
</lib-dime-table>To get the dime table template component for empty data you can add
<lib-dime-table-template >
<thead>
...
</thead>
<tbody>
...
</tbody>
</lib-dime-table-template>In order to enable row reordering, your first column has to be for increasing index