Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GridView component #469

Open
Gulvan0 opened this issue Jul 18, 2022 · 0 comments
Open

GridView component #469

Gulvan0 opened this issue Jul 18, 2022 · 0 comments

Comments

@Gulvan0
Copy link
Contributor

Gulvan0 commented Jul 18, 2022

It is quite logical to expect TableView to treat its contents as individual cells rather than rows. It may not be a default behaviour (that needs to be discussed separately), but at least the mode parameter with "row", "column", "cell" as possible values would be a nice addition. That way, the following should ideally become possible:

  • Cell-wise/column-wise selection and hover effects
  • Cell-wise/column-wise styling (maybe support custom item-renderers for such modes as well)
  • Cell-wise/column-wise events (MouseEvent.CLICK is the most important one)

Optionally, it may be also convenient to simplify the logic corresponding to the datasource, i. e., allow the user to append columns to the column-based TableView in the exact same fashion as rows to the row-based TableView. For cell-based TableView, some another approach may be used (two-dimensional datasource maybe?).

Finally, at the moment, one may create a column header using the <header> tag, but there's no way to do the same for rows. This is also a feature that seems to be important and useful.

@Gulvan0 Gulvan0 changed the title Cell-wise and column-wise TableView logic GridView component Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant