The mat-table-ext is a powerful material table extension component used to display tabular data with extra features.
npm install mat-table-ext-newbash
$ npm i mat-table-ext
`
Setup
Import the MatTableExtModule into imports array.
`ts
import { MatTableExtModule } from 'mat-table-ext';
@NgModule({
...
imports: [MatTableExtModule,...],
...
})
export class YourAppModule {
}
`
`
After adding the MatTableExtModule to your application, add the path of assets of table to your application.
Add the following to your angular.json file under build and test (if required).
{
"assets": [
{
"glob": "*/",
"input": "./node_modules/mat-table-ext/assets",
"output": "/assets/"
}
]
}
`
Theming
After importing the module, you can pass your application theme to the mat-table-ext library by adding the following content to your theme file. More details about theming..
`ts
@use '../node_modules/mat-table-ext/assets/theming' as matext;
@include matext.mat-table-ext-theme($your-theme);
``