vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
473 stars 83 forks source link

[grid] Optional row-details toggle column #1331

Open rolfsmeds opened 4 years ago

rolfsmeds commented 4 years ago

A static column for toggling row details would be beneficial in the following ways:

  1. Visual indicator that the row can be expanded to show details.
  2. Provides a dedicated element for toggling row details, instead of relying on clicking anywhere on the row, which conflicts with single-selection and custom interactive elements (like buttons) in cells.
  3. Solves current issue with editable cells not usable for details toggling in vaadin-grid-pro by providing a dedicated toggle element.
rolfsmeds commented 2 months ago

Notes about how this could be implemented:

sissbruecker commented 1 month ago

Some notes from my investigation:

rolfsmeds commented 1 month ago

I'd say it should always be the last frozen-to-end column, just like the selection column is always the first frozen-to-start column.

An additional detail here is that we've had a request to make it possible to have the details toggle frozen-to-start instead, so that would then require some kind of API for that choice.