vaadin / vaadin/framework

Feature - Grid: better control over focused cell

Open
#9,506 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Vaadin 8 grid allows keyboard navigation in the grid - the documentation refers to it as focused and it looks like a blue box over cell borders.

1.) I would like to be able to know which cell (row and column) is currently focused. Just like there are getSelection/setSelection method, there could be getFocusedItem/getFocusedColum/setFocusedCell.

2.) I would like to be able to set focused set programmatically.

Use case: I want to implement copy paste via ctrl-c/ctrl-v in the grid.

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 with the Vaadin Grid keyboard-navigation behavior described in the linked documentation, focusing on how the currently focused cell is represented. Determine the API needed to read the focused row and column and to set the focused cell programmatically. Done means callers can perform both operations reliably for copy-paste use cases, with corresponding coverage for the new behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.