0.0.11 • Published 5 years ago

sdrc-table v0.0.11

Weekly downloads
11
License
MIT
Repository
-
Last release
5 years ago

This package is developed by SDRC UI team with all the basic features those a table basically has. Its peer dependencies are bootstrap, jQuery and Fontawesome. Please follow the installation steps.

Steps to use SDRC Table 1. Install jQuery, fontawesome and bootstrap

    npm i @progress/kendo-drawing @progress/kendo-angular-pdf-export ng2-search-filter ngx-pagination save-as
    npm i sdrc-table
  1. import TableModule in your module ts

    import { TableModule} from 'sdrc-table'
  2. add TableModule to @ngModule imports

    imports: [
        BrowserModule,
        HttpClientModule,
        TableModule
    ]
  3. Use sdrc-table tag to get the table view

    <sdrc-table 
    [id]="'tab1'"
    [rowData]="tableData" 
    [columnData]="tableColumns" 
    [maxTableHeight]="'600px'"
    [sorting]="true" 
    [sortExcludeColumn]="['action', 'rowId']"
    [isPaginate]="true"
    [itemsPerPage]="15"
    [headerFixed]="true" 
    [searchBox]="true" 
    [downloadPdf]="true" 
    [downloadExcel]="true"></sdrc-table>

    format of rowData and columnData should be like:

    tableData = [{
                    name: "xyz", 
                    age: 0, 
                    action:[{                
                                "controlType" : "button",
                                "type": "submit",
                                "value" :"Edit",
                                "class" : "btn btn-submit",
                                "icon" : "fa-edit"
                            }]
    }]
    
    tableColumns = ["name", "age", "action"]
  4. If you have to handle the event on action button, use:

    (onActionButtonClicked)="yourFunction($event)"
0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago