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

Method _setupStickyStyler

src/cdk/table/table.ts:1491–1510  ·  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

1489 * stickiness when directionality changes.
1490 */
1491 private _setupStickyStyler() {
1492 const direction: Direction = this._dir ? this._dir.value : 'ltr';
1493 const injector = this._injector;
1494
1495 this._stickyStyler = new StickyStyler(
1496 this._isNativeHtmlTable,
1497 this.stickyCssClass,
1498 this._platform.isBrowser,
1499 this.needsPositionStickyOnElement,
1500 direction,
1501 this,
1502 injector,
1503 );
1504 (this._dir ? this._dir.change : observableOf<Direction>())
1505 .pipe(takeUntil(this._onDestroy))
1506 .subscribe(value => {
1507 this._stickyStyler.direction = value;
1508 this.updateStickyColumnStyles();
1509 });
1510 }
1511
1512 private _setupVirtualScrolling(viewport: CdkVirtualScrollViewport) {
1513 const virtualScrollScheduler =

Callers 1

ngOnInitMethod · 0.95

Calls 1

Tested by

no test coverage detected