[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 ! |
chandlerprall
left a comment
There was a problem hiding this comment.
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/ |
chandlerprall
left a comment
There was a problem hiding this comment.
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
renderFooterCellValueprop intoEuiDataGridcomponent.renderFooterCellValueacts the same asrenderCellValueprop - it's a function receivingEuiDataGridCellValueElementPropsand returning a React node. TheEuiDataGridFooterRowjust extends theEuiDataGridDataRowby passing additional props.footer under the thick line
stripped footer
shaded footer
sticky footer
Checklist