How to use the @angular/cdk-experimental/scrolling.AutoSizeVirtualScrollStrategy function in @angular/cdk-experimental

To help you get started, we’ve selected a few @angular/cdk-experimental examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shlomiassaf / ngrid / libs / demo-apps / table-demo / src / lib / components / plugins / virtual-scroll / virtual-scroll.component.ts View on Github external
defaultStrategy() {
        switch (type) {
          case 'auto':
            return new AutoSizeVirtualScrollStrategy(100, 200);
          case 'fixed':
            return new FixedSizeVirtualScrollStrategy(48, 100, 200);
          case 'none':
            return new NoVirtualScrollStrategy();
        }
      }
    });