Virtual scroll angular material table
Virtual scroll table based on angular material, with sticky columns, filtering ,sorting and resizing columns.
Getting Started
Install
run npm i mat-virtual-table
Import module
;
Simple usage
Column titles
Special cells
{{row.name}}
Resizing columns
resize column with rtl support.
Pagination
Set paginator true to add paginator.
mat-virtual-table ="rows" ="true"/mat-virtual-table
to custom lables, use CustomMatPaginatorIntl
:
Api
rows; // table rows. columnsDef; // columns definitions. each column it could be define title, isSortable, isFilterable, and width. default width is calculated by max value length. isFilterable = true; // true by default, and filter all columns, Unless otherwise specified in the columnsDef. filterPlaceholder = 'Filter'; isResizable = true; // true by default, rtl support. be aware that there is performace issue without build with production mode. itemSize = 47; headerSize = 56; pageSize = 50; paginator: boolean;