Repository navigation
[EuiBasicTable/EuiInMemoryTable] Add panelled prop and layout
#9717
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e61bcc0
feat(EuiBasicTable): add `useEuiBasicTablePanelProps` beta utility toβ¦
tkajtoch 7afc7cb
feat(EuiBasicTable): add `panelled` prop that enables the panelled (bβ¦
tkajtoch 01ea8f4
refactor(EuiBasicTable): move PaginationBar component and its types tβ¦
tkajtoch 2cd9c29
[REVERT ME] Add panelled look and feel demo story
tkajtoch a38c529
chore: revert the PaginationBar rename and move to ensure 100% compatβ¦
tkajtoch 538f1ef
test: update snapshots
tkajtoch 226129a
docs(EuiInMemoryTable): add `panelled` prop docs
tkajtoch ea5b7f6
chore: add changelog
tkajtoch 9a79dff
Update packages/eui/changelogs/upcoming/9717.md
tkajtoch a210ca6
feat(EuiBasicTable): render the new wrapping div only when `panelled β¦
tkajtoch 3ab0a8d
feat(EuiBasicTable): render the new wrapping div only when `panelled β¦
tkajtoch 27aa83f
chore: expose `panelled` in Storybook
tkajtoch 734905c
chore: connect `panelled` switch to the storybook control
tkajtoch cdc4434
chore: add panelled story to EuiBasicTable
tkajtoch dab725a
chore: simplify panel styles
tkajtoch 9f8dc73
chore: add VRTs
tkajtoch 58285bb
chore: move `panelled` control to EuiBasicTable-inherited props category
tkajtoch 19bff06
chore: update changelog
tkajtoch 3afe50b
docs(EuiInMemoryTable): add custom panels example
tkajtoch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+402 KB
...s/eui/.loki/reference/chrome_desktop_Tabular_Content_EuiBasicTable_Panelled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.9 KB
...ui/.loki/reference/chrome_desktop_Tabular_Content_EuiInMemoryTable_Panelled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.41 MB
...es/eui/.loki/reference/chrome_mobile_Tabular_Content_EuiBasicTable_Panelled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+132 KB
...eui/.loki/reference/chrome_mobile_Tabular_Content_EuiInMemoryTable_Panelled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| - Added a new optional `panelled` prop (boolean, defaults to `false`) to `EuiInMemoryTable` and `EuiBasicTable` that enables the panelled layout | ||
| - Added `useEuiBasicTablePanelProps` utility hook that provides props and styles necessary to create custom table panels such as toolbars |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
packages/eui/src/components/basic_table/__snapshots__/pagination_bar.test.tsx.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is structured this way because
EuiBasicTableis a class component and adding aRenderWithEuiThemewrapper as the first node would be rather heavy in terms of snapshot changes needed. I tried using thewithEuiThemeHOC but that resulted in something similar.We'll rewrite these table components to function components someday...