ksl-data-table-angular v0.0.2
KSL DataTable Angular
This library was generated with Angular CLI version 15.1.0.
Installation
npm install ksl-data-table-angular
Usage
This is a library bootstrapping some functionalities of @swimlane/ngx-datatable.
selector: data-table
Documentation
Inputs(Properties)
1. tableColumns (TableColumn[]) - list of table columns
2. dataList (any[]) - list of data to display
3. useMatSpinner (?boolean = true) - whether to use spinner to adjust data table for sidebar toggle
4. loadingIndicator (?boolean = true) - whether to use loading indicator
5. enableTableContextMenu (?boolean = false) - whether to enable table context menu to hide some columns
6. enableExternalPaging (?boolean = true) - whether to use pagination
7. columnMode (?ColumnMode = ColumnMode.flex)
8. rowHeight (?number | ?'auto' = 'auto') - height of rows
9. headerHeight (?number = 50) - height of header
10. footerHeight (?number = 50) - height of footer
11. includeIndexColumn (?boolean = true) - whether to add index column as the first column
12. indexColumnProp (?string = 'label.no') - name of the index column
13. indexColumnFlexGrow (?number = 0.5) - flex of the index column
14. indexColumnSortable (?boolean = false) - whether index column is sortable
15. isIndexColumnDesc (?boolean = true) - order of indexing
16. defaultCellStyle (?string = "text-center") - default cell style if cell template not provided
Outputs(Events) 1. setPage - returns changed page number 2. sortColumn - returns column sort info
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.