0.0.30 • Published 6 months ago

my-table-lib v0.0.30

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

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 your angular.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: , }

   ]

}

0.0.20

7 months ago

0.0.21

7 months ago

0.0.23

7 months ago

0.0.24

7 months ago

0.0.25

7 months ago

0.0.15

7 months ago

0.0.17

7 months ago

0.0.18

7 months ago

0.0.19

7 months ago

0.0.30

6 months ago

0.0.26

7 months ago

0.0.27

7 months ago

0.0.29

6 months ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago