NgAdvancedTable
Advanced table component for Angular(2+).
Features
- Base Table with dynamic data.
- Header text should be center aligned
- Odd Even coloring should be configurable using @Input parameter - off / default color / color def for odd and even.
- Dynamic column definition.
- left or right Alignment for text
- infer alignment using data type
- Text for header
- Sorting.
- Programatic Sorting specification
- Show sort indicators on header
- Togger sort order on clicking the header
- Pagination (This will just provide a visual information strip. Actual pagination is to be handled externally).
- Checkbox column.
- Using Generics so that the DataType of data can be intelligently used?
- Scrollable Table with Fixed headers
- Column Formatters
- Row Selection (using checkbox)
- Row Event hooks
- Re-render notification with new data (Observable?)
Usage
- include the component in your project
npm i ngx-advanced-table -S
- include the
AdvancedTableModule
in your AppModule.
;;; ;
- declare the component in you component template
- Pass on data to the table component in your TS file.
constructor
To release (just for my own reference)
git commit
npm run release
npm run build
npm publish dist/ --registry http://registry.npmjs.org