ql-mat-table-filter
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Filter input for Angular Material tables

Installation

npm install --save ql-mat-table-filter@latest

A simple filter library for the angular material tables. Compatible with angular material colour schemes.

Required parameters

Takes a predicate function for filtering, the function must return a boolean value. action: <T>(data: T, filterValue: string) => boolean;

Also a references to the MatTableDataSource must be passed as input

<ql-mat-table-filter  [dataSource]="dataSource">

</ql-mat-table-filter>

Optional parameters

Can customize the input form look based on the material form design.

<ql-mat-table-filter [appearance]="'fill' | 'outline' | 'standard'">
</ql-mat-table-filter>

A label can be provided like any other MatInput form

<ql-mat-table-filter [label]="'Type here to filter!'">

</ql-mat-table-filter>

Package Sidebar

Install

npm i ql-mat-table-filter

Weekly Downloads

0

Version

1.0.2

License

MIT License

Unpacked Size

102 kB

Total Files

23

Last publish

Collaborators

  • harrypi