vaadin / vaadin/framework

Enhancement - Tree / TreeGrid Parent indeterminate mode when child selected

Open
#10,081 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

When a child item in a Tree / Grid is selected and there parent is not, there is no visual cue on the parent note to denote that a child is selected. This is important in the case that the parent node is collapsed.
The Parent node checkbox should support an intermediate mode, such as a "dash" selection. This mode is currently supported in TreeGrid Elements (or at least i thought I came across it), but not in Vaadin Framework (Java).

image

In addition to the checkbox change, the Parent node should also denote the child selection state in the CSS, such as, "child-selected" so that it can be themed, as there is no current way to manually change the css of a parent item from a child event.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Tree and TreeGrid selection handling in the Vaadin Framework code and compare it with the existing TreeGrid Elements indeterminate behavior mentioned in the issue. Done means a selected child gives its collapsed parent an intermediate checkbox state and a themeable child-selected CSS state.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, java
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.