MCPcopy Create free account
hub / github.com/angular/components / _setupStickyStyler

Method _setupStickyStyler

src/cdk/table/table.ts:1473–1492  ·  view source on GitHub ↗

* Creates the sticky styler that will be used for sticky rows and columns. Listens * for directionality changes and provides the latest direction to the styler. Re-applies column * stickiness when directionality changes.

()

Source from the content-addressed store, hash-verified

1471 * stickiness when directionality changes.
1472 */
1473 private _setupStickyStyler() {
1474 const direction: Direction = this._dir ? this._dir.value : 'ltr';
1475 const injector = this._injector;
1476
1477 this._stickyStyler = new StickyStyler(
1478 this._isNativeHtmlTable,
1479 this.stickyCssClass,
1480 this._platform.isBrowser,
1481 this.needsPositionStickyOnElement,
1482 direction,
1483 this,
1484 injector,
1485 );
1486 (this._dir ? this._dir.change : observableOf<Direction>())
1487 .pipe(takeUntil(this._onDestroy))
1488 .subscribe(value => {
1489 this._stickyStyler.direction = value;
1490 this.updateStickyColumnStyles();
1491 });
1492 }
1493
1494 private _setupVirtualScrolling(viewport: CdkVirtualScrollViewport) {
1495 const virtualScrollScheduler =

Callers 1

ngOnInitMethod · 0.95

Calls 1

Tested by

no test coverage detected