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

Function registerColumn

src/cdk-experimental/column-resize/resize-strategy.ts:80–88  ·  view source on GitHub ↗

Informs the ResizeStrategy instance of a column that may be resized in the future.

(column: HTMLElement)

Source from the content-addressed store, hash-verified

78
79 /** Informs the ResizeStrategy instance of a column that may be resized in the future. */
80 registerColumn(column: HTMLElement) {
81 if (!this._tableObserved) {
82 this._tableObserved = true;
83 this._resizeObserver?.observe(this.columnResize.elementRef.nativeElement, {
84 box: 'border-box',
85 });
86 }
87 this._resizeObserver?.observe(column, {box: 'border-box'});
88 }
89
90 ngOnDestroy(): void {
91 this._resizeObserver?.disconnect();

Callers

nothing calls this directly

Calls 1

observeMethod · 0.45

Tested by

no test coverage detected