Informs the ResizeStrategy instance of a column that may be resized in the future.
(column: HTMLElement)
| 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(); |