This is fork of package [https://github.com/ggmod/angular-2-data-table] with additional features(https://github.com/ggmod/angular-2-data-table)
A simple Angular 4 data table, with built-in solutions for features including:
- pagination
- sorting
- row selection (single/multi)
- expandable rows
- column resizing
- selecting visible columns
The component can be used not just with local data, but remote resources too: for example if the sorting and paging happen in the database.
The templates use bootstrap CSS class names, so the component requires a bootstrap .css file to be present in the application using it.
- searchable columns
`npm install angular4-smart-table --save`
-
app.module.ts
import { DataTableModule } from 'angular4-smart-table';
imports : [...,DataTableModule ]
-
app.component.ts
import { DataTable } from 'angular4-smart-table'
;
1. Since the project uses glyphicons, include the following <link> tag in your index.html.
<link data-require="bootstrap-css@3.3.6" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" />
2. Make sure bootstrap is present in your project.
MIT License