šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

mat-vs-table

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mat-vs-table

[![npm version](https://badge.fury.io/js/mat-vs-table.svg)](https://badge.fury.io/js/mat-vs-table) [![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)

10.0.0
latest
Source
npm
Version published
Weekly downloads
65
-52.55%
Maintainers
1
Weekly downloads
Ā 
Created
Source

npm version Angular Style Guide

StackBlitz Template

MatTable with Virtual scroll support

add support for virtual scrolling in angular mat-table

Dependencies

  • mat-vs-table@10.0.0 Angular (requires Angular 10 or higher)

  • mat-vs-table@8.0.0 Angular (requires Angular 8 or 9)

  • mat-vs-table@0.1.1 Angular (requires Angular 7)

Installation

Install above dependencies via npm.

Now install mat-vs-table via:

npm install --save mat-vs-table

Once installed you need to import the main module:

import { MatVsTableModule } from 'mat-vs-table';
import { MatVsTableModule } from 'mat-vs-table';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    MatVsTableModule,
    MatTableModule,
    MatSortModule,
    BrowserAnimationsModule,
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

<cdk-virtual-scroll-viewport class="demo-viewport demo-table-container" itemSize="48">

  <table mat-vs-table [dataSource]="matTableDataSource" matSort>

    <!-- Column definitions -->
    
    <tr mat-header-row *matHeaderRowDef="matTableDataSourceColumns"></tr>
    <tr mat-row *matRowDef="let row; columns: matTableDataSourceColumns;"></tr>
  </table>

</cdk-virtual-scroll-viewport>

Keywords

material

FAQs

Package last updated on 07 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts