Socket
Socket
Sign inDemoInstall

mat-vs-table

Package Overview
Dependencies
8
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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)


Version published
Weekly downloads
135
increased by45.16%
Maintainers
1
Install size
616 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 07 Jul 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc