docs: add Tree Grid subtree highlight example (#6211) (CP: v25.3) - #6237
Merged
Merged
Conversation
Adds a **Recipes** sub-page to the Tree Grid documentation (`articles/components/tree-grid/recipes.adoc`), with a **Highlighting a Subtree** (Flow) section as its first recipe. The new rendered `TreeGridSubtreeHighlight` example gives every descendant of the selected row a `selected-subtree` part name. The part name generator checks whether the selected item is an ancestor of the rendered item. Because part names are generated only when a row is rendered, the selection listener refreshes the descendants of both the previously and the newly selected item. The styling (`tree-grid-subtree-highlight.css`, imported in `styles.css`) sets two properties on `vaadin-grid::part(selected-subtree)`, because the themes use different ones for the cell background: - `--vaadin-grid-cell-background-color` for Aura - `--vaadin-grid-cell-background` for Lumo This PR also adds the `vaadin-grid-tree-toggle` import to `tree-grid-imports.ts`, the preimport for Java-only Tree Grid examples. Without it, the hierarchy column showed no toggles on pages where no Lit example imports the tree column. This change was split out of #6188. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
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.
No description provided.