Skip to content

Commit d1cae93

Browse files
committed
refactor(cdk/table): move virtual scrolling logic into the table
Combines the logic from the `CdkTableVirtualScroll` with the existing `CdkTable`. This allows us to remove the following steps from the virtual scrolling setup: 1. Having to import `CdkTableVirtualScroll`. 2. Having to set `fixedLayout` on the table. 3. Having to set `virtualScroll` on the table.
1 parent 2f351e2 commit d1cae93

File tree

6 files changed

+161
-262
lines changed

6 files changed

+161
-262
lines changed

src/cdk/table/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export * from './table-module';
1313
export * from './sticky-position-listener';
1414
export * from './text-column';
1515
export * from './tokens';
16-
export * from './table-virtual-scroll';
1716

1817
/** Re-export DataSource for a more intuitive experience for users of just the table. */
1918
export {DataSource} from '../collections';

src/cdk/table/table-module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {
3636
} from './cell';
3737
import {CdkTextColumn} from './text-column';
3838
import {ScrollingModule} from '../scrolling';
39-
import {CdkTableVirtualScroll} from './table-virtual-scroll';
4039

4140
const EXPORTED_DECLARATIONS = [
4241
CdkTable,
@@ -61,7 +60,6 @@ const EXPORTED_DECLARATIONS = [
6160
CdkNoDataRow,
6261
CdkRecycleRows,
6362
NoDataRowOutlet,
64-
CdkTableVirtualScroll,
6563
];
6664

6765
@NgModule({

src/cdk/table/table-virtual-scroll.ts

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)