Repository navigation
docs: add responsive Grid columns example based on the grid's width - #6199
Merged
Merged
Conversation
Show how to adjust column visibility based on the browser window width, checking it on attach and on window resize. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
totally-not-ai Bot
added a commit
that referenced
this pull request
Sep 29, 2026
It's now proposed in #6199. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Preview DeploymentThis PR has been deployed for preview. URL: https://docs-preview-pr-6199.fly.dev Changed pagesAdded content is highlighted in green; removed content is marked in red on each page.
Built from 0b7228d |
vursen
self-requested a review
September 29, 2026 10:13
Use Element.sizeSignal() in the Flow example instead of a window resize listener, add Lit and React versions based on ResizeObserver, render all three live inside a split layout, and load ElementResize.js on the docs page because the embedded web component bootstrap does not include it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
vursen
force-pushed
the
docs/grid-responsive-columns
branch
from
September 29, 2026 11:00
03e4b72 to
62caaf4
Compare
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
vursen
marked this pull request as ready for review
September 29, 2026 11:12
Contributor
|
@totally-not-ai update the PR title and description to match the latest changes |
vursen
approved these changes
Sep 29, 2026
Contributor
Author
|
@vursen Updated the title and description to match the latest changes. The example now responds to the Grid's own width (size signal in Flow, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an example to the Column Visibility part of
articles/components/grid/columns.adoc. It hides the individual columns and shows a single combined column when the Grid is narrow, and switches back when it's wide.The example is available for all three frameworks and renders inside a Split Layout, so readers can drag the handle to resize the Grid:
GridResponsiveColumns.java): reacts to the Grid's own size throughgetElement().sizeSignal()inside aSignal.effect. A width of 0 (before the browser reports the size) is treated as wide.grid-responsive-columns.ts) and React (react/grid-responsive-columns.tsx): use aResizeObserveron the Grid.frontend/demo/example-resources.tsimportsElementResize.jsas a temporary workaround for Element.sizeSignal() and other browser helpers don't work in embedded web components flow#26041, so the size signal works in exported demos.This change was split out of #6184.
🤖 Generated with Claude Code