-
Notifications
You must be signed in to change notification settings - Fork 265
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
feat(ui5-grid): implementing new grid component #8362
Conversation
DonkeyCo
commented
Feb 28, 2024
- introduces a new table/grid component
- enhanced accessibility (roles are in the light dom)
- new API mirroring the structure of the HTML table
Created a GridTable component that currently has no functionality at all.
- included GridTable in bundle file - add test page GridTable.html - add bare bones story for GridTable
- create a cell, row and column component Co-authored-by: Cahit Guerguec <cahit.guerguec@sap.com>
- renamed GridTable and related components to Grid - created a CSS parameters file and included it in themes
- playground sample for popin and nodata
- instead of using a min-width/min-screen-width as a popin heuristic, use overflow mechanism - when the table overflows, determines what columns should be moved into the popin
* @default "auto" | ||
* @public | ||
*/ | ||
@property({ type: String, defaultValue: "auto" }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have CSSSize validator available and can be used for width, min/maxWidth props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSSSize will be removed, same as typescript accepts string
for such properties.
@ilhan007 thanks for the review. Regarding your comments:
Should be solved with the upcoming commit.
Yeah. Now that you mention it, it probably won't work. I've seen other components use primaryKey instead of key, maybe this is better? @aborjinik maybe you want to chime in as well?
I see the use case, where selected directly on the row could be nice, but comparing our selection API to other components, we are not the only ones doing this via a property. Vaadin is also doing this similarly. Boils down to personal preference, but I think it's just nicer to decouple selection from the rows itself and have a central place to query it.
Will have a look at this issue.
Fair point. I'll add that in the upcoming commit.
We have a BLI already for navigation indication (as well as row actions), grouping is not on the list yet, but I'll bring it up with the colleagues. |
- remove unnecessary resources folder for test pages - adjust bundle imports - add 2.0 version
- the width of the selection cell was not set to auto - min-width was set to the base width's cell, which should not be the case