Skip to content

Commit d7431ce

Browse files
committed
main - e78587f fix(cdk/table): throw when multiple row templates are used with virtual scrolling (#32682)
1 parent d3f0a76 commit d7431ce

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

docs-content/overviews/cdk/table/table.md.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ <h3 id="virtual-scrolling" class="docs-header-link">
149149
<p>If you&#39;re showing a large amount of data in your table, you can use virtual scrolling to ensure a
150150
smooth experience for the user. To enable virtual scrolling, you have to wrap the CDK table in a
151151
<code>cdk-virtual-scroll-viewport</code> element and add some CSS to make it scrollable.</p>
152+
<p><strong>Note:</strong> tables with virtual scrolling have the following limitations:</p>
153+
<ul>
154+
<li><code>fixedLayout</code> is always enabled, in order to prevent jumping when rows are swapped out.</li>
155+
<li>Conditional templates via the <code>when</code> input are <a href="https://github.com/angular/components/issues/32670">not supported at the moment</a>.</li>
156+
</ul>
152157
</div><div material-docs-example="cdk-table-virtual-scroll"></div><div class="docs-markdown">
153158

154159

docs-content/overviews/material/table/table.md.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ <h4 id="virtual-scrolling" class="docs-header-link">
164164
virtual scrolling which will only render the the visible rows in the DOM as the user is scrolling.</p>
165165
<p>To enable virtual scrolling you have to wrap the Material table in a <code>&lt;cdk-virtual-scroll-viewport&gt;</code>
166166
element and add CSS to make the viewport scrollable.</p>
167+
<p><strong>Note:</strong> tables with virtual scrolling have the following limitations:</p>
168+
<ul>
169+
<li><code>fixedLayout</code> is always enabled, in order to prevent jumping when rows are swapped out.</li>
170+
<li>Conditional templates via the <code>when</code> input are <a href="https://github.com/angular/components/issues/32670">not supported at the moment</a>.</li>
171+
</ul>
167172
</div><div material-docs-example="table-virtual-scroll"></div><div class="docs-markdown">
168173

169174

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/components-examples",
3-
"version": "21.2.0-next.1+sha-7cb78db",
3+
"version": "21.2.0-next.1+sha-e78587f",
44
"description": "Angular Components Examples",
55
"private": true,
66
"repository": {
@@ -255,15 +255,15 @@
255255
},
256256
"homepage": "https://github.com/angular/components#readme",
257257
"peerDependencies": {
258-
"@angular/aria": "21.2.0-next.1+sha-7cb78db",
259-
"@angular/cdk": "21.2.0-next.1+sha-7cb78db",
260-
"@angular/cdk-experimental": "21.2.0-next.1+sha-7cb78db",
258+
"@angular/aria": "21.2.0-next.1+sha-e78587f",
259+
"@angular/cdk": "21.2.0-next.1+sha-e78587f",
260+
"@angular/cdk-experimental": "21.2.0-next.1+sha-e78587f",
261261
"@angular/core": "^21.0.0-0 || ^21.1.0-0 || ^21.2.0-0 || ^21.3.0-0 || ^22.0.0-0",
262262
"@angular/common": "^21.0.0-0 || ^21.1.0-0 || ^21.2.0-0 || ^21.3.0-0 || ^22.0.0-0",
263-
"@angular/material": "21.2.0-next.1+sha-7cb78db",
264-
"@angular/material-experimental": "21.2.0-next.1+sha-7cb78db",
265-
"@angular/material-luxon-adapter": "21.2.0-next.1+sha-7cb78db",
266-
"@angular/material-date-fns-adapter": "21.2.0-next.1+sha-7cb78db"
263+
"@angular/material": "21.2.0-next.1+sha-e78587f",
264+
"@angular/material-experimental": "21.2.0-next.1+sha-e78587f",
265+
"@angular/material-luxon-adapter": "21.2.0-next.1+sha-e78587f",
266+
"@angular/material-date-fns-adapter": "21.2.0-next.1+sha-e78587f"
267267
},
268268
"devDependencies": {
269269
"@angular/aria": "workspace:*",

0 commit comments

Comments
 (0)