@angular/cdk/scrolling#CdkVirtualScrollViewport TypeScript Examples

The following examples show how to use @angular/cdk/scrolling#CdkVirtualScrollViewport. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: virtual-scroll-viewport.component.ts    From alauda-ui with MIT License 6 votes vote down vote up
@Component({
  selector: 'aui-virtual-scroll-viewport',
  templateUrl: 'virtual-scroll-viewport.component.html',
  styleUrls: ['virtual-scroll-viewport.component.scss'],
  host: {
    class: 'aui-virtual-scroll-viewport',
    '[class.aui-virtual-scroll-orientation-horizontal]':
      'orientation === "horizontal"',
    '[class.aui-virtual-scroll-orientation-vertical]':
      'orientation !== "horizontal"',
  },
  changeDetection: ChangeDetectionStrategy.OnPush,
  encapsulation: ViewEncapsulation.None,
  preserveWhitespaces: false,
  providers: [
    {
      provide: CdkVirtualScrollViewport,
      useExisting: VirtualScrollViewportComponent,
    },
  ],
})
export class VirtualScrollViewportComponent extends CdkVirtualScrollViewport {}
Example #2
Source File: tokens-list.component.ts    From rubic-app with GNU General Public License v3.0 5 votes vote down vote up
// eslint-disable-next-line rxjs/no-exposed-subjects
  public readonly scrollSubject$: BehaviorSubject<CdkVirtualScrollViewport>;
Example #3
Source File: alert-list.component.ts    From VIR with MIT License 5 votes vote down vote up
@ViewChild('scrollViewport') scrollViewport?: CdkVirtualScrollViewport
Example #4
Source File: items.component.ts    From VIR with MIT License 5 votes vote down vote up
@ViewChild('scrollViewport') scrollViewport?: CdkVirtualScrollViewport
Example #5
Source File: queue.component.ts    From VIR with MIT License 5 votes vote down vote up
@ViewChild('scrollViewport') scrollViewport?: CdkVirtualScrollViewport
Example #6
Source File: quota-list.component.ts    From VIR with MIT License 5 votes vote down vote up
@ViewChild('scrollViewport') scrollViewport?: CdkVirtualScrollViewport
Example #7
Source File: fixed-size-table-virtual-scroll-strategy.ts    From alauda-ui with MIT License 5 votes vote down vote up
attach(viewport: CdkVirtualScrollViewport): void {
    this.viewport = viewport;
    this.viewport.renderedRangeStream.subscribe(this.renderedRangeStream);
    this.onDataLengthChanged();
  }
Example #8
Source File: fixed-size-table-virtual-scroll-strategy.ts    From alauda-ui with MIT License 5 votes vote down vote up
viewport: CdkVirtualScrollViewport;
Example #9
Source File: logs-viewer.component.ts    From models-web-app with Apache License 2.0 5 votes vote down vote up
@ViewChild(CdkVirtualScrollViewport, { static: true })
  viewPort: CdkVirtualScrollViewport;
Example #10
Source File: np-virtual-scroll.component.ts    From np-ui-lib with MIT License 5 votes vote down vote up
@ViewChild(CdkVirtualScrollViewport) viewPort: CdkVirtualScrollViewport;
Example #11
Source File: preview-extracts-panel.component.ts    From sba-angular with MIT License 5 votes vote down vote up
@ViewChild("scrollViewport") cdkScrollViewport: CdkVirtualScrollViewport;