-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiDataGrid] Add footer row #3770
[EuiDataGrid] Add footer row #3770
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Neat! jenkins, test this (for preview) |
This would close out #3400 |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3770/ |
# Conflicts: # src-docs/src/views/datagrid/styling.js
Hi @chandlerprall ! |
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.
Got my initial pass done, left some requests&thoughts
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3770/ |
One last request from me: let's enable the Show footer row slider by default in the new example. A question for @cchaos: in the Data grid styling and toolbar example, should styling the footer with |
Hmm, I think a designer will need to take a look at the different combinations of styling options and make decisions on how they should interact. Is this PR actually reviewable yet? Seems like if we're looking at the design now we can pull this out of draft? It would be great to just have the functionality done and then one of the designers can take a pass. |
Yep, this is ready for design review - functionality is in place. |
Created a design PR against this branch
|
[EuiDataGrid] Adjust footer row styles and make it sticky
# Conflicts: # CHANGELOG.md # src/components/datagrid/_mixins.scss
jenkins test this |
CI got into a weird network state, jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3770/ |
Another network issue. jenkins test this harder |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3770/ |
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.
I pushed a small cleanup to the changelog, and enabled the Show footer row toggle by default in the footer row example to better demo the functionality. Everything else LGTM, this is mergeable after a CI pass.
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3770/ |
Summary
This resolves #3400
EuiDataGrid footer row
Add footer row implementation by adding
renderFooterCellValue
prop intoEuiDataGrid
component.renderFooterCellValue
acts the same asrenderCellValue
prop - it's a function receivingEuiDataGridCellValueElementProps
and returning a React node. TheEuiDataGridFooterRow
just extends theEuiDataGridDataRow
by passing additional props.footer under the thick line
stripped footer
shaded footer
sticky footer
Checklist