my-table-lib v0.0.30
MyTableLib
This library was generated with Angular CLI version 14.1.0.
Code scaffolding
Run ng generate component component-name --project my-table-lib
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project my-table-lib
.
Note: Don't forget to add
--project my-table-lib
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build my-table-lib
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build my-table-lib
, go to the dist folder cd dist/my-table-lib
and run npm publish
.
Running unit tests
Run ng test my-table-lib
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
Usage
Key Features: 1. supports sorting enable/disable 2. Can add custom text, links& buttons in the table columns by passing template 3. supports static(Front end) & dynamic(Server side) pagination 4. Renders static(Need to explicitly pass the columns config) & dynamic columns (If we pass the array data keys will be treated as columns) 4. Table can be displayed with or without borders
Plz find the attached mock-up.
Installation & Usage:
Installation commands : c:> npm i my-table-lib c:> npm i my-pager-lib
HTML: <lib-my-table-lib *ngIf="showtable" options="tableOptions" data="tableData" limit="tableLimit" offset="tableOffset" (onSortingChanged)="onTableSort($event)">
<lib-my-pager-lib *ngIf="showPager" [size]="'default'"
[bordered]="false"
[useIcons]="true"
[page]="tableOffset"
[limit]="tableLimit"
[totalItems]="tableData.length"
[showPageDetails] = "true"
(onPageChanged)="onPagerUpdated($event)"></lib-my-pager-lib>
Table options: { bordered: false, hover: true, dynamicData: false, columns: [ { name: , sortable: <true/false>, template: , sortKey: , }
]
}
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
6 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago